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

7/11/2019 3:19:17 AM

Aritra Majumder

4 Answers

New Answer


yes it is needed


you can go read some answers on if statement in the lesson(i just have checked it quick and it well explained there)


if 10>5: print("10>5") else: print("10<=5")


Yes in Python.