-
[concept] list vs tuple🐍 파이썬/파이썬 기본 문법 2022. 7. 19. 06:16
List and Tuple
-Both are ordered set of values (or elements), where each value is identified by an index
-The contained values can be of any type and a single list can contain mixed types
-The main difference between the two data structures is that lists are mutable and tuples are immutable: means in case of tuple, you cannot modify (update value) once you created it
'🐍 파이썬 > 파이썬 기본 문법' 카테고리의 다른 글
[list] reference and copy (aliasing and clone) (0) 2022.07.19 [List] 자주쓰이는 리스트 메소드 정리 (0) 2022.07.19 [Variable scope] global scope vs function scope (0) 2022.07.18 what is first class object? (0) 2022.07.18 함수를 함수의 변수로 넘기기 (0) 2022.07.18