list = [3, 4, 20, 9, 56]
list.pop() #() 빈 소괄호만 사용하면 맨 끝에 있는 원소가 삭제됨.
list.pop(2) #2번째 인덱스의 원소가 삭제됨.
#list.remove(20) #20이라는 자료를 넣어야 함.
#근데 pop은 원소의 위치(자리)를 넣어야 함.
print(list.pop(1)) #pop은 뭐가 사라졌는지 알려줌
list2 =[1,1,1,1,1,2,2,2]
print(list2.count(2))
str1 = "나는a민준a입니다"
print(str1.split('a'))
list3 = ['햄', '소세지']
print('&'.join(list3))

Embed on website

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