User Profile
Collapse
-
Oh I forgot to say the file type. So im trying to read the data from a txt file into a paralell array and without using pandas. I'm sorry I should have been more clear -
How to read a file into a parallel array?
Im trying to get the data stored in a file and put that data into a parallel array. -
To be able to find a percentage from a CSV file you need to convert that row into an integer for e.g: percentage = int(row[i])Leave a comment:
-
count = 0
for counter in range(exams):
percentage = (exams[counter].mark/150) * 100
if percentage > 50:
count += 1 #This is an example from my program
print(count)Leave a comment:
-
How do I get a percentage from a csv file
How do I get a percentage from a csv file and use counting occurrences to say how many percentage was above 50?
No activity results to display
Show More
Leave a comment: