강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

오강석님의 프로필 이미지
오강석

작성한 질문수

프로그래밍, 데이터 과학을 위한 파이썬 입문

– Code Assignment : Morse Code

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

작성

·

320

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님의 프로필 이미지
TeamLab
지식공유자

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

오강석님의 프로필 이미지
오강석

작성한 질문수

질문하기