Help me in solving PYTH106 problem

My issue

I think my code is correct but it is not working :frowning:

My code

# Find the anomaly month in the list below

days = [30, 31, 30, 30, 31, 30, 20, 30, 31, 30, 31, 30]
for i in days:
    if i!=30 and 31:

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

you need find the different one you can’t give i!=30 and 31 it will only consider 30 so you need to give i!=30 and i!=31

1 Like

Thank you so much :slight_smile:

example if a ==2 and b==3:
then print (“this”)
here if both the a=2 and b=3 are true then only interpreter will print (“this”)
correct syntax-i!=30 and i!=31