파이썬 목록 지우기
your_list = [1,2,3,4,5,6,7,8,9,10]
your_list.clear() #List becomes [] empty
목록에서 항목 제거 파이썬
# removes item with given name in list
list = [15, 79, 709, "Back to your IDE"]
list.remove("Back to your IDE")
# removes last item in list
list.pop()
# pop() also works with an index...
list.pop(0)
# ...and returns also the "popped" item
item = list.pop()