Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

assign a same value to 2 variables at once python

a = b = 100

print(a)
# 100

print(b)
# 100
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #assign #variables #python
ADD COMMENT
Topic
Name
2+2 =