pos000858   2년 전

주피터 노트북에서 잘 나오는데 왜 type error가 나올까요.. 

protarie   2년 전

Traceback (most recent call last):
  File "***/main.py", line 6, in <module>
    for i in range(10**(len(str(num))-2), num+1):
TypeError: 'float' object cannot be interpreted as an integer

라고 하네요.

fpdlswj112   2년 전

for문의 시작점때문에 문제네요

입력값이 1자리 숫자일 때 벗어납니다

댓글을 작성하려면 로그인해야 합니다.