Error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Error

ars = 12 if ars == 12: print ("da")

15th Nov 2017, 6:43 PM
0x5
2 Answers
+ 3
ERROR: File "..\Playground\", line 2 if ars == 12: ^ IndentationError: unexpected indent -------- SOLUTION: ars = 12 if ars == 12: print ("da") -------- CONCLUSION: This is what happens when you -force- people to properly format their code in the most readable form, rather than leaving it as something that's optional.
15th Nov 2017, 6:53 PM
AgentSmith
0
In case it is Python, you should print "spam" instead of "da".
16th Nov 2017, 12:35 PM
LF Campos
LF Campos - avatar