Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a variablein python

#to create a variable in python:

var = 15 #var is the variable name and 15 is it's value
print(var) #prints the variable var's value

var2 = var + 15 #creating a new variable and value is var + 15
print(var2) #prints var2 which would be 30

# By Codexel
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #variablein #python
ADD COMMENT
Topic
Name
4+1 =