Whenever i put a if statement and start typing next this happens | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whenever i put a if statement and start typing next this happens

indentation error:expected an indented block please help

24th Apr 2018, 7:02 AM
ved
3 Answers
+ 4
if 5==5: print("hello") ⬆️indentation It has to come after if,while statements,function declarations,e. t.c
24th Apr 2018, 7:06 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
you need to give indentation (White spaces using TAB) after if condition in python
24th Apr 2018, 7:05 AM
kaliki chandu
kaliki chandu - avatar
- 1
You need indentation : space or tab. You need to use the same indentation for a block.
24th Apr 2018, 7:05 AM
jerome