single line variable declaration python code example
Example 1: assign multiple variablesin one line
#Instead Of
a = 1
b = ('Hello")
#You Can Do
a,b = 1,'Hello'
Example 2: how to assign a value to multiple variables in python
r = kindle = H = 24
#The Three Variables Are All Equal To 24
Example 3: assign three variables in python in one line
var1, var2, var3 = 1, 'superman',3.7
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'>