0

What does this mean in Python:

if x == (1 or 2):

I know it's different to:

  1. if x == 1 or x == 2:
  2. if x in (1,2):
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Gr11n
  • 1
  • 1
  • 1

0 Answers0