You are viewing a single comment's thread. Return to all comments →
N = int(input()) if ((N>0)and(N<101)): if(((N<6)or(N>20))and(N%2==0)): print("Not weird") else: print("Weird")
else: print("Out of boundary")
I executed the above one. It shows 3 testcases failed. Kindly clarify my doubts.
Seems like cookies are disabled on this browser, please enable them to open this website
Python If-Else
You are viewing a single comment's thread. Return to all comments →
N = int(input()) if ((N>0)and(N<101)): if(((N<6)or(N>20))and(N%2==0)): print("Not weird") else: print("Weird")
else: print("Out of boundary")
I executed the above one. It shows 3 testcases failed. Kindly clarify my doubts.