I'm a little confused on this. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm a little confused on this.

#Ask about their day Question = input ("How is your day?") (True == "good" or "Good" or "Great" or "great") if input==True print("Awesome") else print("Why?") This is what I have so far. I'm trying to get if they say good or great they will receive awesome but if they say anything else they will receive why.

12th Apr 2019, 4:21 AM
Hi Hi
Hi Hi - avatar
2 Answers
+ 8
Question = input ("How is your day?") if Question in ("good", "Good", "Great", "great"): print("Awesome") else: print("Why?")
12th Apr 2019, 4:36 AM
Anna
Anna - avatar
12th Apr 2019, 5:56 AM
Gordon
Gordon - avatar