Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 16, 2020 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/bc600fc15cf6ed0a31112df540a8ce6a to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/bc600fc15cf6ed0a31112df540a8ce6a to your computer and use it in GitHub Desktop.
t=('red','blue','green','red')
print ('red' in t) #Output:True
print ('yellow' in t) #Output:False
print ('red' not in t) #Output:False
print ('yellow' not in t) #Output:True
t1=(1,2,[3,4])
print (3 in t1)#Output:False
print ([3,4] in t1)#Output:True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment