asked
Introduction to Python Algorithm Problem Solving (Coding Test Preparation)
4. Representative value
Resolved
Written on
·
588
0
python shell로 실행시 오류 발생합니다 ㅠㅠ
왜 이런건가요 ㅠㅠ
Answer 3
답변 감사합니다~
n=int(input()) 이렇게 n을 int형으로 해서 나누기 연산을 해야 합니다.
n=input()으로 받으면 n은 자료형이 str형이며 나누기 연산을 할 수 없습니다.
저가 input.txt에 아마 제대로 수정을 안한것 같습니다 항상 좋은 강의 올려주셔서 감사합니다~