Post

Python Programming
Python Programming@PythonPr·
What is The Difference? Drop your answer in the comments!
Python Programming tweet media
English
16
7
114
26.3K
IrisTech
IrisTech@IrisTechss·
@PythonPr There is a space between the append and the 4 in braces in the second code.
English
0
0
11
2.2K
Dan Gibson
Dan Gibson@flebonch·
@PythonPr big green tick next to one, big red tick next to the other. You’re welcome
English
0
0
2
949
Chris Carr
Chris Carr@ChrisCarr_Ga·
Criminals are using drones to keep committing crimes from behind bars. We’re not waiting on bureaucrats. Shoot ’em down, and I’ll stand with the officers who do.
English
125
67
516
1.3M
Karathanasis Athanasios
Karathanasis Athanasios@k_athanasi·
@PythonPr Typo errors are the easiest to debug but the worst for the eye Logical errors on the other hand are the hardest but eyes cant help there runtime error on the other hand is many time just bad assumptions As dyslexic i hate typo errors here it is a space before (
English
0
0
0
219
Solano party rentals
Solano party rentals@solanopartyrent·
@PythonPr Irrelevant only to the 0 & 1 matter who writes those 0, 1 ? You don’t know? Then stop memorizing what code is supposed to do.
English
0
0
0
281
Tech P
Tech P@Tech_p001·
In Python, b = a doesn't create a new list; it just creates a new reference to the same list in memory. Since lists are mutable, any change made through b is reflected in a because they both point to the exact same object. To keep a unchanged, you'd need a shallow copy like b = a.copy() or b = a[:]. The green check correctly shows that print(a) will indeed include the appended value!
English
0
0
0
21
Paylaş