EN
Python - assign one value to multiple variables at once
0 points
In this article, we would like to show you how to assign one value to multiple variables at once in Python.
Quick solution:
xxxxxxxxxx
1
a = b = c = 10
2
3
print(a)
4
print(b)
5
print(c)
Output:
xxxxxxxxxx
1
10
2
10
3
10