본문 바로가기

PYTHON

[19] Python - Tuple

코드

실행화면

tuple is immutable -> 요소 변경 불가

numbers[1] = 1 -> 오류

'PYTHON' 카테고리의 다른 글

[21] Python - Dictionaries  (0) 2022.01.12
[20] Python - Unpacking  (0) 2022.01.12
[18] Python - List 중복 요소 제거  (0) 2022.01.12
[17] Python - List Methods  (0) 2022.01.12
[16] Python - 2D Lists  (0) 2022.01.12