You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

example_test.py 565B

5 years ago
1234567891011121314
  1. AOA_Point_3 = -90
  2. def get_data(filename):
  3. import csv
  4. with open(filename,'r') as f:
  5. lines = list(csv.reader(f, delimiter = ',', skipinitialspace = True)) # Printing Specific Part of CSV_file
  6. #print(lines[0][4]) # Printing last line of second column
  7. for i in range(len(lines)-5): # For printing a range of rows except 10 last rows of second column
  8. C = int(lines[i][4])
  9. Angle_diff = C - AOA_Point_3
  10. print(Angle_diff)
  11. #return
  12. get_data('test2.txt')