Post

Jenny
Jenny@JennyTheDev·
@PythonPr The difference is one IndentationError and 45 minutes of staring at your screen wondering why Python hates you. Spaces are invisible. The pain is not 😂
English
0
0
6
361
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@PythonPr No difference in math. The ❌ happens when print(c) has extra leading spaces (or mixed tabs/spaces) without a block → IndentationError.
English
0
0
1
437
Ranjan
Ranjan@Ranjanrgdev·
@PythonPr Bro again indentation error in the second one Am I right @grok
English
1
0
1
379
venky
venky@venkyzz3·
@PythonPr Indentation error
Dansk
0
0
0
19
HeYSriram.TSX
HeYSriram.TSX@sriram_gsr16·
@PythonPr Same lines, different outcome. Is this about scope or indentation?
English
0
0
0
22
Giulio Laurenti
Giulio Laurenti@LaurentiGiulio·
@PythonPr The indentation in the second one causes the error.
English
0
0
0
8
CasBlog
CasBlog@CasBlog58512·
@PythonPr No need for indentation. c is a variable and not a function.
English
0
0
0
139
IrisTech
IrisTech@IrisTechss·
@PythonPr i don't think there would be any difference with the Python program despite the indentation in the second option.
English
0
0
0
20
Sunil
Sunil@SunilSun56557·
@PythonPr The difference is indentation. Python uses whitespace to define code blocks.
English
0
0
0
79
Turo
Turo@Kanyestanl93162·
@PythonPr Whitespace
English
0
0
0
24
OurAllPrint
OurAllPrint@ahmed686020·
@PythonPr I do not know Python but i think print(c) can not see c because it is defined in sub block
English
0
0
0
145
Поделиться