5th Dec 2019, 7:35 AM
Илья🇷🇺
Илья🇷🇺 - avatar
2 ответов
+ 3
You can't use this syntax: if var = int, int, int, ..., int: There is atleast 3 syntax errors: ~You are using = in a if expression. What did you want to do with "var = int, int, int, ..., int"? ~You lack a codeblock from an if statement. If you don't need to put any code in it, you can use pass keyword. ~Also var == x, y, z is invalid, you can use parentheses to make it a comparison with tuple. use: if var == (int, int, int, ..., int): pass or if var == (int, int, int, ..., int): pass
5th Dec 2019, 8:24 AM
Seb TheS
Seb TheS - avatar
+ 2
thank you very much
5th Dec 2019, 9:03 AM
Илья🇷🇺
Илья🇷🇺 - avatar