You are viewing a single comment's thread. Return to all comments →
Here is my soultion on Python2
def read(N): if N % 2 == 0: if N >= 2 and N <= 5: print 'Not Weird' elif N >=6 and N <= 20: print 'Weird' elif N >20: print 'Not Weird' else: print 'Weird' return; N = int(input()) read(N)
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 →
Here is my soultion on Python2