0

is there a issue in jump ahead question where it asks to define a variable and add 5 to it?

x=4 x _=5 print___

21st Jul 2016, 1:13 PM
Ishan Bisht
Ishan Bisht - avatar
3 odpowiedzi
0
Nope I don't think there is any issue with the code: x = 4 x += 5 print(x) The result is 9
21st Jul 2016, 1:41 PM
Benneth Yankey
Benneth Yankey - avatar
0
allright i work on 2.7 so () was not in my mind.
21st Jul 2016, 1:59 PM
Ishan Bisht
Ishan Bisht - avatar
0
x+=5 means we are to define the variable which is to be added
21st Jul 2016, 3:20 PM
Syed Tanvir Chistie
Syed Tanvir Chistie - avatar