Program
#Assigning single value to multiple variables
print("============================")
print("#Assigning single value to multiple variables")
x=y=z=50
print(x)
print("x value is ", x)
print(y)
print("y value is ", y)
print(z)
print("z value is ", z)
#Assigning multiple values to multiple variables:
print("============================")
print("#Assigning multiple values to multiple variables:")
a,b,c=10,20,30
print(a)
print("a value is ", a)
print(y)
print("b value is ", b)
print(z)
print("c value is ", c)
#Assigning single value to multiple variables
print("============================")
print("#Assigning single value to multiple variables")
x=y=z=50
print(x)
print("x value is ", x)
print(y)
print("y value is ", y)
print(z)
print("z value is ", z)
#Assigning multiple values to multiple variables:
print("============================")
print("#Assigning multiple values to multiple variables:")
a,b,c=10,20,30
print(a)
print("a value is ", a)
print(y)
print("b value is ", b)
print(z)
print("c value is ", c)
OUTPUT:
============================
#Assigning single value to multiple variables
50
x value is 50
50
y value is 50
50
z value is 50
============================
#Assigning multiple values to multiple variables:
10
a value is 10
50
b value is 20
50
c value is 30