Skip to content

Instantly share code, notes, and snippets.

@chrisjsimpson
Created September 14, 2015 20:27
Show Gist options
  • Save chrisjsimpson/9eec03d0069a880faf38 to your computer and use it in GitHub Desktop.
Save chrisjsimpson/9eec03d0069a880faf38 to your computer and use it in GitHub Desktop.
array = ['Tree','Log','Table','Chair']
myVar = 'Cat'
if myVar not in array:
print "It's not in the array!"
myVar = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment