Question #74499

Write a program which reads an integer from input using pancakes = int(input()). If pancakes is more than 3, print out Yum! and if pancakes is not more than 3, print out Still hungry! instead.

Expert's answer

pancakes = int(input("Enter count of the pancakes:"))
if(pancakes > 3):
print("Yum!")
else:
print("Still hungry!")
LATEST TUTORIALS
APPROVED BY CLIENTS