I think #1 and #3 are somewhat underrated. Especially in Python I use #1 a lot because it's even lighter, just in instead of includes(...).
Some comments have been hidden by the post's author - find out more
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.