Post

@PythonPr Indentation decides everything in Python—one small space can make or break your code! ✅
English

@PythonPr There shouldn't be a difference, but Python is completely stupid in this regard.
English

@PythonPr The first one has proper indentation while the second lack proper indentation
English

@PythonPr Simplest way to understand this
In Python, spaces = logic.
Miss the indent, miss the condition 🙂
English

@PythonPr The indentation of the print statement, meaning, the line the print statement is after the column is suppose to have a space from where the "if statement" is aligned.
English

@PythonPr In the second indentation missing
So it don't check condition and print
And first check condition and print if it true
English

@PythonPr In second logic print command is not inside if condition.
English

@PythonPr Th difference is that in any proper language, both works.
But not in Python.
Because Python is a shitty language.
English

@PythonPr Python respects indentation too much. The first piece works as it is indented correctly.
Second piece no indentation, so it fails.
English




























