인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

doctorsong8309's profile image
doctorsong8309

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

4. Representative value

python shell로 실행시 오류 발생합니다 ㅠㅠ

Resolved

Written on

·

588

0

python shell로 실행시 오류 발생합니다 ㅠㅠ 

왜 이런건가요 ㅠㅠ

python코테 준비 같이 해요!

Answer 3

0

doctorsong8309님의 프로필 이미지
doctorsong8309
Questioner

답변 감사합니다~

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

n=int(input()) 이렇게 n을 int형으로 해서 나누기 연산을 해야 합니다. 

n=input()으로 받으면 n은 자료형이 str형이며 나누기 연산을 할 수 없습니다.

0

doctorsong8309님의 프로필 이미지
doctorsong8309
Questioner

저가 input.txt에 아마 제대로 수정을 안한것 같습니다 항상 좋은 강의 올려주셔서 감사합니다~

doctorsong8309's profile image
doctorsong8309

asked

Ask a question