python declaring multiple variables in one line code example
Example 1: declare multiple variables at once python
a = b = c = "Hello, World"
print(a)
print(b)
print(c)
b = "foo"
c = "bar"
print(a)
print(b)
print(c)
Example 2: assign three variables in python in one line
var1, var2, var3 = 1, 'superman',3.7
Example 3: multiple variable declaration in python
a = b = 100
print(a)
print(b)
Example 4: python set several variables to none
>>> a=1
>>> a
1
>>> a, b, c, d, e, f, g, h, i, j = (None,)*9
>>> type(a)
<class 'NoneType'>