Sort by

recency

|

4262 Discussions

|

  • + 0 comments

    !/bin/python3

    import math import os import random import re import sys

    if name == 'main': n = int(input().strip()) if n % 2 == 1: # Odd print("Weird") else: # Even if 2 <= n <= 5: # Range 2 to 5 print("Not Weird") elif 6 <= n <= 20: # Range 6 to 20 print("Weird") elif n > 20: # Greater than 20 print("Not Weird")

  • + 0 comments

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

  • + 1 comment

    if name == 'main': n = int(input().strip()) if n % 2 != 0: print("weird")

    elif n >= 2 and n >= 5: print("Not Weird")

    elif n >= 6 and n <= 20: print("weird")

    else : print("Not weird")

    help me with this getting one testcase wrong

  • + 0 comments

    i am getting stuck for values above 100,

  • + 0 comments

    if name == 'main': n = int(input().strip())

    if n % 2 != 0: print("Weird") elif n % 2 == 0: if 2 <= n <= 5: print("Not Weird") elif 6 <= n <= 20: print("Weird") elif n > 20: print("Not Weird")