[파이썬] List 관련 (Python)
- List에서 데이터 추가 기능은 아래와 같다 sample_list = [1, 1, 2] print("sample_list before: ", sample_list) sample_list.append(3) #List에데이터추가기능 print("sample_list after: ", sample_list) [1, 1, 2]>> [1,1,2,3] - 데이터를 대체도 가능 party_list = ["Joana", "Alton", "Tobias"] print("party_list before: ", party_list) # the list after Insert party_list[1] = "Colette" print("party_list after: ", party_list) [..