Jul-20-2023, 09:51 AM
The order was right, but your comparison is
Changed the operator to
greater than
, so the number must be bigger.Changed the operator to
greater equal than
.while True: grade = int(input("Enter the Grade: ")) if grade >= 90: print("You Got an AA! Congrats!") elif grade >= 85: print("You Got an BA! Congrats!") elif grade >= 80: print("You Got an BB! Congrats!") elif grade >= 75: print("You Got an CB! Congrats!")The
while True
loop is just for easier testing.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!