Question: You run the following Python code. If a user enters 5 , what would be output? answer = input ( Do you like food

You run the following Python code. If a user enters 5, what would be output?
answer = input("Do you like food on campus? Rate this from 1 to 5:")
if answer==1:
print("Very dissatisfied")
elif answer==2:
print("Dissatisfied")
elif answer==3:
print("Neutral")
elif answer==4:
print("Somewhat Satisfied")
elif answer==5:
print("Satisfied")
else:
print("I dont understand")
Choice 1 of 6: Very dissatisfied
Choice 2 of 6: Neutral
Choice 3 of 6: Satisfied
Choice 4 of 6: Dissatisfied
Choice 5 of 6: I dont understand
Choice 6 of 6: Somewhat satisfied

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!