Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add one to a variable in python

x = 20
x = x+1
print(x)

or 

x = 20
x+=1
print(x)
Source by pythonguides.com #
 
PREVIOUS NEXT
Tagged: #add #variable #python
ADD COMMENT
Topic
Name
2+5 =