+ 2

Can someone please explain what’s going on here?

https://code.sololearn.com/coUMiHycKBch/?ref=app

16th Nov 2019, 8:31 AM
Eleri Lamp
Eleri Lamp - avatar
3 Respuestas
+ 7
Here I have added comments which I think explain it all if you still don't understand anything tell me https://code.sololearn.com/cynDOO0e1Y0N/?ref=app
16th Nov 2019, 8:46 AM
Arsenic
Arsenic - avatar
+ 3
Hi. First you swap values, then print value of x, multiply it by 2 (x presented as string) and print x again. Loop is not needed in your program.
16th Nov 2019, 8:48 AM
Dmytro Novak
Dmytro Novak - avatar
+ 2
thanks a lot, it’s clear now
16th Nov 2019, 8:55 AM
Eleri Lamp
Eleri Lamp - avatar