튜플은 (1,2,3) 식으로 출력되고
리스트는 [1,2,3] 식으로 출력된다.
다만 내용적으로는 리스트는 순서가 변할수 있으며(순서가 의미가 없다)
튜플은 순서를 바꿀수 없다(즉, 순서에 의미가 있다)
| 4.6.5. Tuples Tuples are immutable sequences, typically used to store collections of heterogeneous data (such as the 2-tuples produced by the enumerate() built-in). Tuples are also used for cases where an immutable sequence of homogeneous data is needed (such as allowing storage in a set or dict instance). | 
[링크 : https://docs.python.org/3/library/stdtypes.html#tuples]
| 4.6.4. Lists Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application). | 
[링크 : https://docs.python.org/3/library/stdtypes.html#lists]
'Programming > python(파이썬)' 카테고리의 다른 글
| pypy (0) | 2018.04.04 | 
|---|---|
| 파이썬 print가 희한하네.. (0) | 2017.04.02 | 
| 파이썬 type 확인하기 (0) | 2017.04.02 | 
| python sqlite3 (0) | 2017.03.30 | 
| python smtplib의 신비..? (0) | 2016.12.30 | 






