Assigning Multiple values to Variables/Variable in Python Python allows to assign multiple values to multiple variables in a single line as shown in Example below:
x, y, z = "Bus", "Car", "Jeep"print(x)print(y)print(z)
Python also allows to assign same value to multiple variables in a single line as shown in example below:
x = y = z = "Vehicles"print(x)print(y)print(z)