Python Program to initialize more than one variable at a time


In this program, You will learn how to initialize more than one variable at a time in Python.


x = y = z = 5

Example: How to initialize more than one variable at a time in Python

x = y = z = 5

print("The x value is:", x)

print("The y value is:", y)

print("The z value is:", z)

Output:

The x value is: 5
The y value is: 5
The z value is: 5