Write a Python program to check whether multiple variables have the same value.

Write a Python program to check whether multiple variables have the same value.

1
2
3
4
5
x = 20
y = 20
z = 20
if x == y == z == 20:
    print("All variables have same value!")  

Final output

Leave a Comment