Python allows you to assign a single value to several variables simultaneously. For example − a = b = c = 1 Here, an integer object is created with the value 1, and all three variables are assigned to the same memory location. You can also assign multiple objects to multiple variables. For example −
a,b,c = 1,2,"john"
print(a) print(b) print(c)