assigning multiple variables in one line in python code example
Example: assigning multiple variables in one line in python
a, b, c, d = 4, "geeks", 3.14, True
print(a) #prints 4
print(b) #prints geeks
print(c) #prints 3.14
print(d) #prints True
a, b, c, d = 4, "geeks", 3.14, True
print(a) #prints 4
print(b) #prints geeks
print(c) #prints 3.14
print(d) #prints True