Python - Operators and Expression Evaluation
Identify the problem in this code:
my_list = [1, 2, 3]
if 4 in my_list:
print('Found 4')my_list = [1, 2, 3]
if 4 in my_list:
print('Found 4')if to be indented.print line is not indented, causing an IndentationError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions