Created
October 4, 2015 12:45
-
-
Save poros/20d144da4a93374f8a40 to your computer and use it in GitHub Desktop.
Check if something is inside a container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for c in colors: | |
| if c == 'blue': | |
| return True | |
| return False | |
| 'blue' in colors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment