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

제목step10 실습 마지막문제 정렬2020-04-17 00:30
작성자

step10 실습 마지막문제에서

(d) 리스트 ids에 [5566,1830] 를 추가하여 리스트 ids를 확장합니다.

여기서 ids.append([5566,1830]) 하라는건가요? ids.append(5566), ids.append(1830) 하라는건가요??

전자처럼 하면 정렬 할때 ids.sort()하면 TypeError: '<' not supported between instances of 'int' and 'list' 에러가 떠요....

후자처럼 하면 정렬 문제없이 가능한데...

댓글