+ 4
[SOLVED]User input equals anything in a tuples?
https://code.sololearn.com/cWTuiwISr5ik/?ref=app in this code I need it to output hi of az equals anything in in the tuple rightinput
4 ответов
+ 6
Full Gamer thx
+ 6
Here's another way:
az = input().lower()
h = "hi", "hello", "hey"
rightinput = h + ("yo", "sup")
if az in h:
print("hello")
elif az in rightinput:
print("hi")
else:
print("why")
+ 6
David Ashton very nice thx