Skip to content

Several choices

Watch it run · 1 of 3

Turning marks into a grade

1marks = int(input())
2if marks >= 90:
3 print("A")
4elif marks >= 75:
5 print("B")
6elif marks >= 60:
7 print("C")
8else:
9 print("F")

Memory

int marks

72

Typed input

72

Output

(nothing yet)

line 1Read 72.

step 1 of 5