Day 3: Intro to Conditional Statements

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

    There's no need to bother with the 'Not Weird' conditionals because else will catch everything that is not 'Weird'.