136k views
1 vote
HELP ASAP!!!

Write a program that asks the p34won to enter their grade, and then prints GRADE is a fun grade. Your program should repeat these steps until the user inputs I graduated.

Sample Run
What grade are you in?: (I graduated) 1st
1st is a fun grade.
What grade are you in?: (I graduated) 3rd
3rd is a fun grade.
What grade are you in?: (I graduated) 12th
12th is a fun grade.
What grade are you in?: (I graduated) I graduated

It's in python

User Ademarizu
by
5.9k points

1 Answer

2 votes

def func():

while True:

grade = input("What grade are you in?: (I graduated) ")

if grade == "I graduated":

return

print("{} is a fun grade".format(grade))

func()

I hope this helps!

User Viktor Carlson
by
6.3k points