check if a variable has the same value as a other variable in python code example
Example: python check if variables are the same
values = [x, y, z] # can contain any number of values
if all(v == 1 for v in values):
values = [x, y, z] # can contain any number of values
if all(v == 1 for v in values):