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
  • 107,083
  • 22
  • 201
  • 376
Gr11n
  • 1
  • 1
  • 1

0 Answers0