If you are given a .txt file which contains these contents:
James Doe 2/16/96 IT210 A BUS222 B PHY100 C
John Gates 4/17/95 IT101 C MATH112 B CHEM123 A
Butch Thomas 1/28/95 CS100 C MATH115 C CHEM123 B
How can you get it so it takes the class names and grades and puts them into an empty dictionary while ignoring the rest? I have code set up to read the .txt file but got stuck. Any suggestions?
This is my code for opening the file:
def readFile():
new_dict = {}
myFile = open('Students.txt', 'r')
for line in myFile: