Write a python program that prompts users to enter a character (O, A ,B ,C, F) and display Outstanding, Very Good, Good, Average and Fail respectively.
PROGRAM:
c=input("Enter a character:")
if (c=="O"):
print("Performance: Outstanding.")
elif (c=="A"):
print("Performance: Very Good.")
elif (c=="B"):
print("Performance: Good.")
elif (c=="C"):
print("Performance: Average.")
elif (c=="F"):
print( "Performance: Fail.")
else:
print("Invalid character.")
OUTPUT:
No comments:
Post a Comment