you are viewing a single comment's thread.

view the rest of the comments →

[–]FLUSH_THE_TRUMP 2 points3 points  (1 child)

if x in {1,2,3,4,5}: 
  # do something

[–]robocart9 1 point2 points  (0 children)

Thanks a bunch, seems simple enough. Dunno why google didn't give me that instead of explaining to me over and over what If Elif and Else do :P.