프로그램

[파이썬] 문제 : 예외처리(try-except) 코드 완성

오디세이99 2022. 11. 27. 14:25
728x90
반응형

(문제)

빠진 코드 완성하기.

try:
    print('hello world!')
    5 / 0
____:
    print('error!')

 

 

(방법)

try:
    print('hello world!')
    5 / 0
except:
    print('error!')
728x90
반응형