Sort by

recency

|

4230 Discussions

|

  • + 0 comments
    import sys
    
    n = int(sys.stdin.read())
    
    if n%2 != 0 or (n%2 == 0 and n in range(6, 21)):
        sys.stdout.write('Weird')
    elif n%2 == 0 and (n in range(2, 6) or n>20):
        sys.stdout.write('Not Weird')
    
  • + 0 comments

    n = int(input().strip()) if n%2==0 and n in range(2,5): print("Not Weird") elif n%2==0 and n in range(6,20): print("Weird") elif n%2==0 and n>20: print("Not Weird") else: print("Weird")

  • + 0 comments

    n=int(input()) if(n%2==0): if(n>=2 and n<=5): print("Not Weird") elif(n>=6 and n<=20): print("Wierd") elif(n>20): print("Not Weird")
    else: print("Weird")

  • + 0 comments

    if name == 'main': n = int(input().strip()) please guide if n%2==0 : print('Weird') elif 2<= n <=5 : print('Not Weird') elif 6<= n <=20 : print('Weird') else : print("Not Werid")

  • + 0 comments

    please response here