과제 질문
213
작성한 질문수 7
'''# -- coding: utf-8 --
def main():
print("본 프로그램은 섭씨를 화씨로로 변환해주는 프로그램입니다")
print("============================")
===Modify codes below=================
def input_celsius_value():
print("변환하고 싶은 섭씨 온도를 입력해 주세요: ")
celsius_value=float(input(("변환하고 싶은 섭씨 온도를 입력해 주세요: ")))return celsius_value
def convert_celcius_fahrenheit(celsius_value):
fahrenheit_value=((9/5)*celsius_value)+32
return fahrenheit_value
def print_fahrenheit_value(celsius_value,fahrenheit_value):
print("섭씨온도:", celsius_value)
print("화씨온도", fahrenheit_value)
======================================
print("===========================")print("프로그램이 종료 되었습니다.")
if name == 'main':
main()
celsius_value=input_celsius_value()
fahrenheit_value=convert_celcius_fahrenheit(celsius_value)
print_fahrenheit_value(celsius_value, fahrenheit_value)
이렇게 해서 똑같은 결과를 얻었는데, 과제를 제출하면 2개 실패로 나와요.아무리 봐도 문제를 못 찾겠어요.
'''
C:\Users\Sue\workspace\python_mooc\lab_4>python fahrenheit_converter.py
본 프로그램은 섭씨를 화씨로로 변환해주는 프로그램입니다
변환하고 싶은 섭씨 온도를 입력해 주세요: 32.2
섭씨온도: 32.2
화씨온도 89.96000000000001
프로그램이 종료 되었습니다.
C:UsersSueworkspacepython_mooclab_4>submit.bat adpl136472
∙ Session token prefix: fbb58830aa
∙ In the legacy mode, all cases will run serially!
✔ [0] Session 0 is ready.
Uploading files: 100%|████████████████| 6.90k/6.90k [00:00<00:00, 33.2kbytes/s, file=unit_test_fahrenheit_converter.py]
✔ [0] Uploading done.
python-kernel: skipping build phase due to missing "setup.py" file
✔ Build finished. (exit code = 0)
Generating result sheet...
Test Case | Passed? | Feedbacktest_convert_celsius_fahrenheit | FAILED | Failed
test_input_celsius_value | PASSED | Good Job
test_main | FAILED | Failed
test_print_fahrenheit_value | PASSED | Good Job
Reading source file...
Transferring results to server...
Transfer completed.
✔ Execution finished. (exit code = 0)
✔ [0] Execution finished.
답변 0
atom warning 글
0
337
0
backend.ai 설치 오류
0
315
0
backend.ai 설치 시 에러 발생
0
740
1
과제 제출 시 hash key is already used 문제 발생
0
445
0
install.bat 오류
0
478
0
과제 제출 시 hash key is already used. 해시키 문제 문의 드립니다.
0
308
1
"Hash key is already used."으로 인한 과제 제출 실패 문의
0
303
1
과제 제출 시 에러가 발생합니다
0
271
1
인트로 강의가 없습니다
0
180
0
사진 링크가 깨져있습니다
0
270
0
slack아직 사용할 수 있는건가요?
0
173
0
강의자료
0
398
4
'backend.ai'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.
0
438
2
에러확인부탁드립니다.
0
258
1
number of cases 코드 질문
0
206
1
split 관련 질문입니다!
0
229
1
함수 definition 관련 질문입니다.
0
296
1
is_digit 함수 구현
0
306
1
Map & Reduce 강의 8분 15초
1
233
1
keyword parameter
0
239
1
submit.bat 오류
0
196
2
matrix_transpose 결과값이 뭐죠?
0
176
0
value를 넣으면 key를 반환하는 함수
0
131
0
첨부파일의 unit test는 어떻게 사용하나요?
0
267
0





