Hello guys i'm kinda new to programming and i'm trying to do a certain task.
I want to use a for loop to read certain data from a txt file and print them to a console.
I'm trying to read student names and their grades.
something like
3 // 3 represents the number of students.
George 97
Sarah 70
Maya 88
the data may vary but it's always in this format.
any help is appreciated
thanks
I want to use a for loop to read certain data from a txt file and print them to a console.
I'm trying to read student names and their grades.
something like
3 // 3 represents the number of students.
George 97
Sarah 70
Maya 88
the data may vary but it's always in this format.
any help is appreciated
thanks