Is it necessary to place a space when writing statement of the "if"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it necessary to place a space when writing statement of the "if"?

When the space is not provided it shows me indentation error. https://code.sololearn.com/cGnhU8wFF0RI/?ref=app

11th Jul 2019, 3:19 AM
Aritra Majumder
Aritra Majumder - avatar
3 Answers
+ 4
yes it is needed
11th Jul 2019, 3:31 AM
ALTernative
ALTernative - avatar
+ 3
you can go read some answers on if statement in the lesson(i just have checked it quick and it well explained there)
11th Jul 2019, 3:35 AM
ALTernative
ALTernative - avatar
+ 3
Yes in Python.
11th Jul 2019, 11:29 AM
Sonic
Sonic - avatar