Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tuple Operations

# Membership test in tuple
my_tuple = ('a', 'p', 'p', 'l', 'e',)

# In operation
print('a' in my_tuple)
print('b' in my_tuple)

# Not in operation
print('g' not in my_tuple)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Python #Tuple #Operations
ADD COMMENT
Topic
Name
7+9 =