You are viewing a single comment's thread. Return to all comments →
n = int(input()) if(n>=1 and n<=100): if ((n % 2 != 0 or n>=6) and n<=20): print('Wierd') else: print('Not Wierd')
what is wrong in this code... I am getting the right output but failing the test case.
Python If-Else
You are viewing a single comment's thread. Return to all comments →
n = int(input()) if(n>=1 and n<=100): if ((n % 2 != 0 or n>=6) and n<=20): print('Wierd') else: print('Not Wierd')