#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목step_11 3번째 과제2021-04-13 00:31
작성자

a=[1,1,2,3,5,8,13,24,34,55]

b=[1,1,2,3,4,5,6,7,8,9,10,11,12]

a.append(b)

a.sort()

for i in range(min(a),max(a)):

    k = a.count(i)

    ind = a.index(i)

    if(k>1):

        del a[ind:ind+k-1]

    else:

        a

c=a

print(c)


로 코드를 작성하니까

TypeError: '<' not supported between instances of 'list' and 'int'
이렇게 떠요 어디가 잘못된건지 잘 모르겠어요
댓글
이전중간고사 관련 질문입니다.2021-04-13
다음step_10 list2021-04-12