What is False!?!? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is False!?!?

print("Welcome!") x = input("Print Hello or Hi or Ciao:") if x == "Hello" or "Hi" or "Ciao": print("Hi. How are u?") y = input("How are u:") if y in ("Im fine", "Good", "Good!", "Im fine!", "Good.","Im fine.", "I'm fine", "I'm fine!"): print("Good") elif y == "Im fine thanks", "Im fine thanks!", "Good, thanks", " I'm fine, thanks!", "Im fine, thanks!", "Im fine, thanks", "Im fine, thanks!", "Im fine, thanks.", "I'm fine, thanks.", "I'm fine thanks!":     print("No problem") else: print("What?") z = input("Your age:") if z == "12" or "13" or "14" or "15": print("Oh, Im only 1 day...") print("I have to go, sorry.") a = input("Say bye or other Farewell: ") if a == "Bye" or "Goodbye" or "Ciao" or "Good luck" or "Good luck!": print("Good luck!")

26th Sep 2018, 3:27 PM
Joe
Joe - avatar
10 Answers
+ 2
thnx bro
26th Sep 2018, 4:22 PM
Joe
Joe - avatar
+ 1
print("Welcome!") print("This is Say-Bot v.3.1 coded by Joe or CMD on Python3") x = input("\nPrint Hello or Hi or Ciao:") if x == "Hello" or "Hi" or "Ciao":     print("Hi. How are u?") y = input("How are u:") if y in ("Im fine", "I'm fine", "Good", "Good!", "Im fine!", "Good.","Im fine.", "I'm fine", "I'm fine!"): print("Good, how old are u?") elif y == "Im fine thanks"or "Im fine thanks!" or " I'm fine, thanks!" or "Im fine, thanks!" or "Im fine, thanks" or "Im fine, thanks!" or "Im fine, thanks" or "I'm fine, thanks." or "I'm fine thanks!":     print("No problem, how old are u?") else: print("What?") z = input("Your age:") if z == "12" or "13" or "14" or "15":     print("Oh, Im only 1 day...")     print("I have to go, sorry.") a = input("Say Bye or other Farewell: ") if a == "Bye" or "Goodbye" or "Ciao" or "Good luck" or "Good luck!" or "Goodbye!":     print("Good luck!")
26th Sep 2018, 4:26 PM
Joe
Joe - avatar
+ 1
my Say-Bot))
26th Sep 2018, 4:27 PM
Joe
Joe - avatar
+ 1
print("Welcome!") print("This is Cam's guh on Python3") x = input("\nPrint "ello:") if x == "ello": print("2.4.6.8 who do i appreciate?") print("how are YOU?") print("Thanks a heap slash sorry") print("Over") like dis?
27th Sep 2018, 7:01 PM
BaileyJade
0
you can't check conditions by x=="a","b",... or by x=="a" or "b" write: x=="a" or x=="b" or ...
26th Sep 2018, 4:21 PM
Gaurav Atreya
Gaurav Atreya - avatar
0
no
27th Sep 2018, 7:03 PM
Joe
Joe - avatar
0
u have to many arguments and only 1 inputbox
27th Sep 2018, 7:03 PM
Joe
Joe - avatar
0
make like my code, with one input, many variants, and 1 output
27th Sep 2018, 7:05 PM
Joe
Joe - avatar
0
ok. I will work on it; thx a heap
27th Sep 2018, 10:19 PM
BaileyJade
0
No problem. if u have any other question - find oncle Joe)))
28th Sep 2018, 5:24 AM
Joe
Joe - avatar