Answers for "python check if 3 values are equal"

0

python check if 3 values are equal

cat, dog, rabbit = 1, 1, 1
print (cat == dog == rabbit)
>>> True
cat, dog, donkey = 1, 1, 2
print (cat == dog == donkey)
>>> False
Posted by: Guest on February-13-2020

Code answers related to "python check if 3 values are equal"

Python Answers by Framework

Browse Popular Code Answers by Language