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 codefreelance.net #
 
PREVIOUS NEXT
Tagged: #Python #Tuple #Operations
ADD COMMENT
Topic
Name
8+4 =