Python Variables – Assign Multiple Values

Python allows you to assign values to multiple variables in one line:

x, y, z = "Orange", "Banana", "Cherry"
print(x)
print(y)
print(z)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *