+ 1

Input (phyton)

can somebody tell me how to make that if you leave a input empty something happens like: a = input () b = input () c = input () if a == ("hi") and b == ("hey") and c == ("hello"): print ("output1") elif a == ("hi") and b == ("hey"): print ("output2")

6th Aug 2018, 12:59 AM
ShadowWrath72
ShadowWrath72 - avatar
6 Respostas
+ 3
first of all: a=input("") b=input("") c=input("") if a=="hi" and b=="hey" and c=="hello": print("output1") elif a=="hi" and b=="hey" *and c=="": print("output2")
6th Aug 2018, 8:41 AM
misgav yosef
misgav yosef - avatar
+ 2
ShadowWrath72 input: hi hey (enter, you cant see it) https://code.sololearn.com/cGzFOe5KFd0W/?ref=app
6th Aug 2018, 9:10 AM
misgav yosef
misgav yosef - avatar
+ 2
send me your mail i will send you better instructions(picture by picture)
6th Aug 2018, 10:06 AM
misgav yosef
misgav yosef - avatar
+ 2
copy the text between the quotation marks and paste it in the input field: "hi hey " of course, don't forget to delete the quotation marks, but keep the third enter
6th Aug 2018, 2:11 PM
misgav yosef
misgav yosef - avatar
+ 1
nope it doesn't work
6th Aug 2018, 8:56 AM
ShadowWrath72
ShadowWrath72 - avatar
+ 1
nope it says me EofError
6th Aug 2018, 9:15 AM
ShadowWrath72
ShadowWrath72 - avatar