Post

Python Programming
Python Programming@PythonPr·
What is the Difference ? Comment your answer 💯
Python Programming tweet media
English
46
9
124
12.3K
Dread Team Leader
Dread Team Leader@DreadTeamLeader·
@PythonPr assuming python, the second one has a scope that has no pass for lack of function which will cause an error before running the script; if there was a pass then it would still print “Eligible”.
English
0
0
0
27
Emeline Hex
Emeline Hex@MelinShioto·
@PythonPr There isn't one while you're assigning the variable *right* there
English
0
0
0
268
Gopuff
Gopuff@gopuff·
No middleman means no markups. Add $0 delivery on your first order and 100s of deals, and staying on the couch starts to look financially responsible.
English
37
66
766
7.4M
Etor
Etor@eiJayJay_·
@PythonPr Indentation. The second one wikk thow an indentation error
English
0
0
0
383
Natifella
Natifella@Natifella1·
@PythonPr Wrong indentation will make the program print eligible regardless of the if test
English
0
0
3
192
A–𝕏 (Full twist 😜)
@PythonPr You have a silent enemy in your code if your bad in indent management in Python @grok You should do a civil engineering before learning the Python Ruler 📏 always win
English
1
0
0
153
Virendra Patel
Virendra Patel@V1rendra_·
@PythonPr Indentation is the key! Top print stays under the if, bottom one always runs.
English
0
0
0
18
Narkasur
Narkasur@Evil_hunter001·
@PythonPr If block, indentation error like in java braces not closed .
English
0
0
0
194
Ambersol
Ambersol@Delta45X·
@PythonPr It's not indented properly so print("Eligible") is not part of the if statement
English
0
0
0
25
؏
؏@ylj_33·
@PythonPr The condition will not work
English
0
0
0
17
Desiree
Desiree@Dezire2006·
@PythonPr La diferencia es que en el código de abajo el print no está dentro del código .
Español
0
0
0
35
Paylaş