10 lines
No EOL
404 B
Python
10 lines
No EOL
404 B
Python
# Question: Ask if the user likes pizza. If they answer “yes” display “I like pizza too”, otherwise display “My favourite food is pizza.”
|
|
|
|
# Ask the user if they like pizza
|
|
response = input("Do you like pizza? (yes/no): ").strip().lower()
|
|
|
|
# Check the response and display appropriate message
|
|
if response == "yes":
|
|
print("I like pizza too!")
|
|
else:
|
|
print("My favourite food is pizza.") |