본문 바로가기

카테고리 없음

[k디지털크레딧] 파이썬(python) 오류 보는법

 

print(fist_name+num) →에러가 난 부분 알려줌

 

TypeError: can only concatenate str (not "int") to str →에러가 난 이유를 설명을 복사해서 구글링 찾으면 됨

 

num=2  →  num=srt(2)로 수정한다