How to use Operators in Python

We can assign multiple values to variables by:

Python

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

Output

Orange
Banana
Cherry

And you can assign thesamevalue to multiple variables in one line:

Python

x = y = z = "Orange"
print(x)
print(y)
print(z)

Output

Orange
Orange
Orange