code_practice

Hackerrank 30 Days of Code 3 [Intro to Conditional Statements]

  • By Khel Kim, 김현호
  • 29 Jan 2019
  • Tags : coding_practice

기초를 갈고 닦기 위한 스탭!
Hackerrank 30 Days of Code
문제
Intro to Conditional Statements

if __name__ == '__main__':
    N = int(input())
    if 2 <= N and N <= 5 and N % 2 == 0:
        print("Not Weird")
    elif 6 <= N and N <= 20 and N % 2 == 0:
        print("Weird")
    elif N % 2 == 1:
        print("Weird")
    elif N % 2 == 0:
        print("Not Weird")

궁금하신게 있다면 메일 주세요.
k2h7913@daum.net
cafehero123@gmail.com