the-honk/school/gcse/year 9/python challenges/8 - Grades.py

10 lines
214 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
mark = int(input('What mark did you get?'))
if mark >= 75:
print('You got an A!')
elif mark >= 60:
print('You got a B!')
elif mark >= 35:
print('You got a C!')
elif mark < 35:
print('You got a D!')