#First example
def grade(number):
return "Great" if number >= 90 else "Not Great"
print(grade(int(input())))
#second example
number = int(input())
if number >= 90:
print("Great")
else:
print("Not great")
#Third example
print( "Great" if int(input()) >= 90 else "Not Great")
You can use any of the above methods
Comments
Leave a comment