+ 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")
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")
+ 2
ShadowWrath72
input:
hi
hey
(enter, you cant see it)
https://code.sololearn.com/cGzFOe5KFd0W/?ref=app
+ 2
send me your mail
i will send you better instructions(picture by picture)
+ 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
+ 1
nope it doesn't work
+ 1
nope it says me EofError