Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
841 B
1
Indexable
Never
# Module that contains functions for 2048
# Name: Anson Vattakunnel
# Student Number: VTTANS001
# Date: 19 April 2022

combined_marks = input("Enter a space-separated list of marks:\n")
fail = []
third = []
lower_second = []
upper_second = []
first = []

marks = combined_marks.split()          #Splits the input into lists

#Checks each mark to see what type of level it is
for i in marks:
    if int(i) >= 75:
        first.append("X")
    elif int(i) >=70 and int(i) < 75:
        upper_second.append("X")
    elif int(i) >=60 and int(i) < 70:
        lower_second.append("X")
    elif int(i) >=50 and int(i) < 60:
        third.append("X")
    else:
        fail.append("X")
print("1 |" + "".join(first))
print("2+|" + "".join(upper_second))
print("2-|" + "".join(lower_second))
print("3 |" + "".join(third))
print("F |" + "".join(fail))