Answers for "what does += mean in python"

4

what does += mean in Python

x = 0
while x < 5: 
  print(x)
  x += 1   #the x += 1 expression is a shortend version for x = x + 1
Posted by: Guest on June-01-2020
8

what is += python

>>> a = 10
>>> a += 5
>>> a
15
Posted by: Guest on April-03-2020
1

what does += mean in python

x = 0
while x < 5:
  print(x)
  x += 1
Posted by: Guest on June-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language