'Convention for Checking Equivalence of Three Values (Python)

I had a question re: checking for equivalence of three values in Python. I was wondering which of these two options was better, as in, is one a more excepted convention than the other?

  1. a == b == c

  2. a == b and b == c

Any insight would be appreciated, thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source