+ 2
Pls python learners I'm stuck with this question
Fill in the blanks to declare a variable,add 5 to it and print its value. >>> x = 4 >>> x __ = 5 >>> print__
2 Réponses
+ 6
x = x + 5 has a short variant
x += 5
print(x)
The same with:
x = x - 5 or x -= 5
x = x * 5 or x *= 5
x = x / 5 or x /= 5
x = x % 5 or x %= 5
+ 1
From what Boris Batinkov has said, it is
>>> x = 4
>>>x +=5
>>> print x