It seems that something is wrong but i don't know what | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

It seems that something is wrong but i don't know what

x = 4 if x == 5: print("false") else: print("true")

26th Feb 2017, 9:51 PM
Joseph
Joseph - avatar
1 Answer
+ 12
You must indent your inner conditionnal statements ( espacement is essential in Python ): x = 4 if x == 5: print("false") else: print("true")
26th Feb 2017, 9:55 PM
visph
visph - avatar