Python program to print the single value into multiple variables

A Python program to print the single value into multiple variables. Using this program we can print the single value into multiple variables. Different variable names are provided to the left of the assignment operator, separated by a comma, when assigning multiple variables in a single line. The same is true for their values, except that they should be placed to the right of the assignment operator.

x = y = z = "inlarn.com"
print(x)
print(y)
print(z)

 

Output:

inlarn.com

inlarn.com

inlarn.com