2nd Mar 2023, 2:21 PM
Maxim Gomez
Maxim Gomez - avatar
3 Answers
+ 2
Compare: 1.) s == "A" or "B" vs 2.) s == "A" or s == "B" You probably wanted to do the second one.
2nd Mar 2023, 2:26 PM
Lisa
Lisa - avatar
+ 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")
3rd Mar 2023, 12:42 AM
Bob_Li
Bob_Li - avatar
0
Thank You very much!!! I just new in pythob
2nd Mar 2023, 2:29 PM
Maxim Gomez
Maxim Gomez - avatar