the-honk/school/gcse/year 9/python challenges/8 - Grades.py
2024-10-09 18:02:36 +01: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!')