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

제목list 실습 마지막 문제 질문이요2018-10-22 17:44
작성자

ids= [4353,2314,2956,3382,9362,3900]
b= ids.remove(3382)
print('(a)', b)
print('(b)',ids.index(9362, 2))
c= ids.insert(5,4499)
print('(c)', c)
d= ids+[5566,1830]
print('(d)',d)
e= ids.reverse()
print('(e)',e)
f= ids.sort()
print('(f)', f)
 


결과:

(a) None
(b) 3
(c) None
(d) [4353, 2314, 2956, 9362, 3900, 4499, 5566, 1830]
(e) None
(f) None
 

왜 none이 나올까요?? none이 안나오게 할려면 어떻게 해야할까요?


댓글
이전loop part1 질문2018-10-23
다음22일 시험2018-10-21