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!
6.6m questions
8.8m answers