hacker rank python(python if-else)solution

PYTHON IF-ELSE :


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

Compiler Message
Success
Input (stdin)Download
3
Expected OutputDownload
Weird

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions