+ 4

I can't understand the question in python basics , the 'add 5 to the variable and print '

27th Sep 2016, 3:17 PM
Vaibhav Singh
Vaibhav Singh - avatar
6 ответов
+ 4
x = 4 x += 5 print(x) x += 5 is equivalent to x = x + 5. += is called an inplace operator. Similarly, you have -=, *=, /=, etc.
27th Sep 2016, 3:21 PM
Zen
Zen - avatar
+ 2
Then retry. You probably typed it wrong. + (x)
27th Sep 2016, 4:41 PM
Zen
Zen - avatar
+ 1
no ,it's still not working, 😖
27th Sep 2016, 3:56 PM
Vaibhav Singh
Vaibhav Singh - avatar
+ 1
@Ivan Lev no it won't print function just prints the integer or array you cannot perform an operation in the print function
27th Mar 2017, 4:39 PM
Vaibhav Singh
Vaibhav Singh - avatar
0
I'm new here, but maybe this will work? print(x = x + 5)
27th Sep 2016, 6:35 PM
Ivan Lev
0
this code is not working
28th Dec 2016, 11:37 AM
ankit mourya
ankit mourya - avatar