0
Why "else" don't work?
3 Answers
+ 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