Post

Python Programming
Python Programming@PythonPr·
What is The Difference ❓Comment The Output
Python Programming tweet media
English
60
23
197
20.8K
Jenny
Jenny@JennyTheDev·
@PythonPr Indentation: the silent career killer One prints "Positive" One gives you IndentationError and 30 minutes of debugging 💀
English
0
0
13
936
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@PythonPr Top prints Positive. Bottom throws IndentationError because print() isn’t indented inside the if block.
English
0
0
3
724
K.AMMAAR
K.AMMAAR@k_ammaar12·
@PythonPr The indentation is the difference.
English
0
0
2
205
Ranjan
Ranjan@Ranjanrgdev·
@PythonPr Indentation in 2nd statement @grok am i correct
English
1
0
2
1.3K
Ken
Ken@KinsCisco·
@PythonPr Indentation: Four spaces per level: That’s the python way
English
0
0
1
441
Python Tech
Python Tech@PythonTech43716·
@PythonPr In second code indentation error is that's why code will not run.
English
0
0
1
213
Atul
Atul@Atul27221124·
@PythonPr @grok do senior developers still debate indentation or have we evolved?
English
1
0
1
9
shabi
shabi@qadrishabih_·
@PythonPr Indentation in 2nd code. First one is correct.
English
0
0
1
673
Erick
Erick@erickeduardo4·
@PythonPr A indentação
Português
0
0
1
268
Jake Tracy
Jake Tracy@JakedaVyse·
@PythonPr The incorrect code does not have proper indentation. Functions, if else, while, and try exceptions all need an indent to run properly.
English
0
0
1
232
VIPER3398
VIPER3398@VIPER3398·
@PythonPr The main difference is the indentation.
English
0
0
0
92
Murrieta
Murrieta@ind3ntured·
@PythonPr Other languages: “Eh, close enough.” Python: “Indent properly or perish.”
English
0
0
0
243
kayu
kayu@cinnamonkecil·
@PythonPr No indentation in 2nd code
English
0
0
0
197
K0D€D^
K0D€D^@jaiyedkoded1·
@PythonPr indentation is a syntax error's best friend
English
0
0
0
4
Odo Kingsley Uchenna
Odo Kingsley Uchenna@KingsleyOd93772·
@PythonPr In the second statement the print() is not inside the if statement, and for that it will throw an indentation error.
English
0
0
0
36
DrRobotoAi MyAgenta
DrRobotoAi MyAgenta@MyagentaC68092·
@PythonPr missing the indent: if ....: print correct with "indent", 4 spaces: if : print
English
0
0
0
81
Paylaş