🐍 파이썬/파이썬 기본 문법

[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