Day 3: Intro to Conditional Statements

  • + 0 comments
    if N % 2 != 0:
        print('Weird')
    elif N % 2 == 0 and 2 <= N <= 5:
        print('Not Weird')
    elif N % 2 == 0 and 6 <= N <= 20:
        print('Weird')
    else:
        print('Not Weird')