Help me in solving PYTH106 problem

My issue

unable to crack this problem…

My code

days = [30, 31, 30, 30, 31, 30, 20, 30, 31, 30, 31, 30]

for i, day in enumerate(days):
  if day not in [30, 31]:
    print("Anomaly found in month", i + 1)
    break

Learning course: Python with Data structures
Problem Link: CodeChef: Practical coding for everyone

Hi @p_20cs280
Correct Code:
days = [31, 28, 31, 29, 31, 30, 31, 31, 30, 31, 30, 31]
for i in days:
if i!=30 and i!=31:
print(i)

Thank you :smiley:

Correct Code:
days = [31, 28, 31, 29, 31, 30, 31, 31, 30, 31, 30, 31]
for d in range(len(days)):
if days[d]!=30 or days[d]!=31:
print(“Anomaly found in month”,d+1 )
break