please help me where is the mistake(python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
5th Dec 2019, 7:35 AM
ะ˜ะปัŒั๐Ÿ‡ท๐Ÿ‡บ
ะ˜ะปัŒั๐Ÿ‡ท๐Ÿ‡บ - avatar
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
5th Dec 2019, 8:24 AM
Seb TheS
Seb TheS - avatar
+ 2
thank you very much
5th Dec 2019, 9:03 AM
ะ˜ะปัŒั๐Ÿ‡ท๐Ÿ‡บ
ะ˜ะปัŒั๐Ÿ‡ท๐Ÿ‡บ - avatar