how to set 2 vars in python code example
Example 1: multiple variable declaration in python
a = b = 100
print(a)
# 100
print(b)
# 100
Example 2: multiple variable declaration in python
a, b = 100, 200
print(a)
# 100
print(b)
# 200
a = b = 100
print(a)
# 100
print(b)
# 100
a, b = 100, 200
print(a)
# 100
print(b)
# 200