- 1

impossible to finish last question in final test of basics course

X=4 X+=5 Print x

21st Oct 2017, 9:06 PM
Eric Deschaintre
Eric Deschaintre - avatar
2 Antworten
+ 1
In python, "x+=5" is a shortance of "x=x+5", so here the answer is 9. You can also go to the code area here and run this code by yourself, and check what the output is.
21st Oct 2017, 9:35 PM
Adiel
Adiel - avatar
0
Sorry for this stupid question...
21st Oct 2017, 9:20 PM
Eric Deschaintre
Eric Deschaintre - avatar