Day 3: Intro to Conditional Statements

  • + 0 comments

    import math import os import random import re import sys

    if name == 'main': N = int(input().strip()) if N%2==1 : print("Weird") if N%2==0 and N>=2 and N<=5 : print("Not Weird") if N%2==0 and N>=6 and N<=20 : print("Weird") if N>20 and N%2==0: print("Not Weird")