#리스트의 원소 제거 pop
list = [4, 10, 20, 3, 8]
list.pop(3) #인덱스 번호를 적으면 그 위치의 원소 삭제
print(list)
list.pop() #인덱스 번호를 안 적으면 맨 마지막 원소 삭제
print(list)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: