the-honk/school/gcse/year 9/python challenges/8 - Grades.py
2021-12-21 19:46:28 +00:00

10 lines
No EOL
214 B
Python

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!')