Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
mark = float(input("Course mark (%): "))
if mark >= 90:
print("A")
elif mark >= 80:
print("B")
elif mark >= 70:
print("C")
elif mark >= 60:
print("D")
else:
print("F")