create a program that gets the marks the user has for their classes this year. Tell them how many
classes they are failing (despite what many o
f you think a fail is 50%)
as seriuosly need help with this program,python is giving me a hard tym


# assume this is your data file (CSV type)
# each line has last name, first name, grade
data = '''\

filename = "grades123.txt"
# write a test file
with open(filename, "w") as fout:

# now read your test file back in and process the data
with open(filename, "r") as fin:
    for line in fin:
        # remove trailing newline char
        line = line.rstrip()
        # split the line at the commas
        line_list = line.split(",")
        print(line, line_list)  # test
        # unpack the line
        last, first, grade = line_list
        # now check if int(grade) <= 50
        # and tell person (last first) if they failed

You will have to work with more than one grade in your data line.