DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit