Python - Operators and Expression Evaluation
Find the error in this code snippet:
items = ['pen', 'pencil', 'eraser']
if 'pen' not items:
print('Pen is missing')items = ['pen', 'pencil', 'eraser']
if 'pen' not items:
print('Pen is missing')value not in collection. The code misses in after not.in.in after not -> Option Cnot in together [OK]not in together [OK]not items instead of not in itemsin keywordnot alone checks membership15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions