+ 4
I can't understand the question in python basics , the 'add 5 to the variable and print '
6 Answers
+ 4
x = 4
x += 5
print(x)
x += 5 is equivalent to x = x + 5.
+= is called an inplace operator. Similarly, you have -=, *=, /=, etc.
+ 2
Then retry. You probably typed it wrong.
+
(x)
+ 1
no ,it's still not working, đ
+ 1
@Ivan Lev
no it won't
print function just prints the integer or array
you cannot perform an operation in the print function
0
I'm new here, but maybe this will work?
print(x = x + 5)
0
this code is not working