#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목step7 짝수홀수 판정코드 질문드립니다2018-12-31 13:58
작성자

def decideNumber(x):

    if (x > 0) or (x < 0):

        if ((x%2) == 0):

            print("Even number")

        else:

            print("Odd number")

    

    else:

        print("Not matched")


numInput = int(input("Enter a random integer: "))


decideNumber(numInput)


실습창에서는 실행되는데 바로밐에 자가진단에서는 오류가 발생하네요ㅠㅠ

이유가 궁금합니다!.!

댓글