• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

다른 함수는 다 Pass인데 main 함수만 Fail입니다.

20.08.25 22:18 작성 조회수 181

0

다른 건 다 통과했는데 main 함수만 fail이 나왔습니다. 실행했을 때는 잘 돌아가던데 어디가 문제일까요?

def main():
    print("Morse Code Program!!")
    # ===Modify codes below=============
    while 1:
        user_input = input("Input your message(H - Help, 0 - Exit): ")
        if is_help_command(user_input) is True:
            print(get_help_message())
        elif user_input == "0":
            break
        elif is_validated_morse_code(user_input) is True:
            print(decoding_sentence(user_input))
        elif is_validated_english_sentence(user_input) is True:
            print(encoding_sentence(user_input))
        else:
            print("Wrong Input")
    # ==================================
    print("Good Bye")
    print("Morse Code Program Finished!!")

답변 1

답변을 작성해보세요.

0

과제에 대해 따로 답변을 드리지 않는 것이 원칙입니다. 혹시 정 어려움이 있으시면 teamlab.gachon@gmail.com으로 문의 부탁드립니다.