python check if variables are the same

Solutions on MaxInterview for python check if variables are the same by the best coders in the world

showing results for - "python check if variables are the same"
Giulio
22 Feb 2020
1values = [x, y, z]  # can contain any number of values
2if all(v == 1 for v in values):