Q3:Find out the output of the following: a) x=2 y=2 x+=y y-=x print (x,y) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Q3:Find out the output of the following: a) x=2 y=2 x+=y y-=x print (x,y)

Please help me out

29th Oct 2020, 5:32 AM
Anshika Katoch
Anshika Katoch - avatar
2 Answers
+ 8
Here are some pro tips :- 1) always mention language in relevant tags to get relevant answers 2) you can use sololearn's IDE (code playground ) to find the output on your own.
29th Oct 2020, 5:34 AM
Arsenic
Arsenic - avatar
0
Jan Markus x is still 4, so output is: 4 -2
29th Oct 2020, 1:56 PM
Benjamin Jürgens
Benjamin Jürgens - avatar