Post

@PythonPr Top prints Positive. Bottom throws IndentationError because print() isn’t indented inside the if block.
English

@PythonPr In second code indentation error is that's why code will not run.
English

@PythonPr The incorrect code does not have proper indentation. Functions, if else, while, and try exceptions all need an indent to run properly.
English

@PythonPr @cammpopp32 The first solution is been slant but the second one is in straight/blocked form
English

@PythonPr In the second statement the print() is not inside the if statement, and for that it will throw an indentation error.
English

@PythonPr missing the indent:
if ....:
print
correct with "indent", 4 spaces:
if :
print
English
































