SyntaxError from quize | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

SyntaxError from quize

x = 5 y = x + 3 y = int(str(y) + ("2") print(y) File "./Playground/file0.py", line 4 print(y) ^ SyntaxError: invalid syntax Is it me wrong or the system?

2nd Dec 2020, 2:28 PM
Onix
3 Answers
+ 3
Onix , you are missing the closing bracket => y = int(str(y) + ("2"))
2nd Dec 2020, 2:31 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
nah, sometimes it's the line above. in this case it is Onix what are you trying to do with y?
2nd Dec 2020, 2:29 PM
Slick
Slick - avatar
0
The system is never wrong. MWAAAAAAHAAAAAHAAAAAAAAAA!
2nd Dec 2020, 2:30 PM
Fleet
Fleet - avatar