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