0
Why "else" don't work?
3 Antworten
+ 2
Compare:
1.) s == "A" or "B"
vs
2.) s == "A" or s == "B"
You probably wanted to do the second one.
+ 1
Maxim Gomez
instead of the long chain of 'or', you can use:
if s in ("Овен", "Телец", "Скорпион", "Козерог", "Рыбы", "Дева", "Близнецы", "Лев", "Водолей", "Рак", "Весы"):
print(random.choice(sest))
else:
print("404 NOT FOUND")
0
Thank You very much!!! I just new in pythob