Post

Python Programming
Python Programming@PythonPr·
What is the Output ? x = 5 y = x x = x+2 x += x + 4 print ( x )
English
21
5
62
13.6K
C.A. Moses
C.A. Moses@techwithmomo·
@PythonPr Answer is 18, but I have to ask why assign x to y if you aren't going to use it, that's a waste of computer memory
English
0
1
3
333
MHH
MHH@HuwaidiMH·
@PythonPr What's the reason for introducing y?
English
1
0
4
610
Gopuff
Gopuff@gopuff·
There's no middleman here to mark things up. Orders come straight from our shelves to you in as fast as 15 minutes.
English
115
151
1.2K
11.1M
Abubakar Lawali
Abubakar Lawali@VibeCdr·
@PythonPr The answer is 18. That last line always tricks people who read it too fast. 👌
English
0
0
1
93
Zhenyu Sun
Zhenyu Sun@ZhenyuSun9·
@PythonPr x+= n means x=x+n. x+=x+4means x=x+x+4 =7+7 +4 =18
English
0
0
1
166
North Texas
North Texas@XThatMomX·
@PythonPr Just farted. Stinky level shooooooohooohooohoooohooooo. Because boiled cabbage and carrots last night.
English
0
0
0
39
Paylaş