Post

Jenny
Jenny@JennyTheDev·
@PythonPr The difference? 4 spaces of pain. Python: Where whitespace is not just style, it's law 😂
English
7
1
175
44.2K
ShalomInfosoft
ShalomInfosoft@ShalomInfosoftz·
@PythonPr Indentation decides everything in Python—one small space can make or break your code! ✅
English
0
1
109
27.5K
Himal
Himal@himalbhattaraix·
@PythonPr Tab indentation Python does not use braces {} to define code blocks like C, Java, or JavaScript. Instead, it uses indentation (spaces or tabs) to define the structure of the code: loops, functions, conditionals, etc.
English
0
1
26
2.9K
Sixtus Agbakwuru
Sixtus Agbakwuru@SixtusAgbakwuru·
@PythonPr The first one has proper indentation while the second lack proper indentation
English
0
0
22
13.7K
Dev Shorya
Dev Shorya@shoryaDs7·
@PythonPr Simplest way to understand this In Python, spaces = logic. Miss the indent, miss the condition 🙂
English
0
1
12
31.5K
Droid | Code
Droid | Code@DriodXL·
@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
0
1
7
1.7K
clovis
clovis@cloclodma·
@PythonPr Indentation is missing in the last line of the second code
English
0
0
5
9.8K
Sonofgrace
Sonofgrace@Horlharmighty1·
@PythonPr Indentation Python doesn't joke with it
English
0
0
4
8.4K
Devika
Devika@devika7408·
@PythonPr The difference is in the command. It needs an indent... Is that a correct word? Maybe! 😄
English
0
0
2
3.7K
Adarsh Kr Singh
Adarsh Kr Singh@adarshkusingh·
@PythonPr In the second indentation missing So it don't check condition and print And first check condition and print if it true
English
0
0
2
317
Templier Nocturne
Templier Nocturne@TemplierNoctur1·
@PythonPr Th difference is that in any proper language, both works. But not in Python. Because Python is a shitty language.
English
0
0
2
39
Fml
Fml@LEDx2000·
@PythonPr On the top one, the print function will only be executed if the if statement is true. In the bottom one, there's a missing indentation so all commands will be executed either way and the if statement is useless
English
1
0
2
623
VK
VK@vishalkothawade·
@PythonPr Python indentation consider print inside of when tab/spaces are given Else it considered as outerpart not inside of if loop
English
0
0
2
211
Lil B
Lil B@muma_brian5·
@PythonPr Indentation in python >>>
Deutsch
1
0
2
143
Tius Zwelendaba
Tius Zwelendaba@tius_z88571·
@PythonPr Python respects indentation too much. The first piece works as it is indented correctly. Second piece no indentation, so it fails.
English
0
0
1
7.8K
lex'i
lex'i@SalsabilaA35162·
@PythonPr That's why i hate python
English
0
0
1
122
Ken
Ken@kenodhiambo·
@PythonPr python is petty.... one indentetion
Deutsch
0
0
1
168
Paylaş