+ 2
please help me where is the mistake(python)
2 Answers
+ 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
+ 2
thank you very much