My issue
days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for item in days:
if item != 30 and item != 31:
break
print(item)
My code
# Find the anomaly month in the list below
days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for item in days:
if item != 30 and item != 31:
break
print(item)
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone