Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

List Operations in Python

my_list = ['p', 'r', 'o', 'b', 'l', 'e', 'm']

# Output: True
print('p' in my_list)

# Output: False
print('a' in my_list)

# Output: True
print('c' not in my_list)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #List #Operations #Python
ADD COMMENT
Topic
Name
3+7 =