if I have a text file like:
StudentA:
10
20
30
40
StudentB:
60
70
80
90
I want to make a function :
def read_file(file,student):
file=file.open('file.txt','r')
when I call it,
read_file(file,StudentA)
it will show the list like:
[10,20,30,40]
How can I do it with a while loop?
whileloop?