Post

Sergei Kotov
Sergei Kotov@kotov_dev·
@PythonPr Answer: 18 The 90% beginners trap: x += x + 4 isn't x += 9! › x = 7 (after +2) › x += x + 4 means x = x + (x + 4) › x = 7 + 7 + 4 = 18 For beginners: += expands first, then evaluates both sides with the current x.
English
2
0
8
319
Oscar Mayer
Oscar Mayer@oscarmayer·
Hope you’re hungry. The most delicious spectacle in racing is back on the menu on May 22 at 2pm ET. LIVE on FOX.
English
189
528
4.9K
19.1M
SikhumbaTouch
SikhumbaTouch@TouchSikhumba·
@PythonPr Thanks! This is reinforced learning! I just became more confident into python even though I got this wrong.
English
0
0
0
249
TechGuideHub
TechGuideHub@TechGuideHub·
@PythonPr x = 5 y = x → y = 5 x = x + 2 → x = 7 x += x + 4 → x = 7 + (7 + 4) = 18
Español
0
0
4
188
Ram Trucks
Ram Trucks@RamTrucks·
All-season confidence meets legendary power. LFG.
English
0
103
878
6.6M
Paylaş