2nd Mar 2023, 2:21 PM
Maxim Gomez
Maxim Gomez - avatar
3 ответов
+ 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