파이썬 len()

(Python len()에서 넘어옴)

1 개요[ | ]

Python len()
파이썬 len()

2 문자열의 길이[ | ]

문자열
str = "Hello"
print( len(str) ) # 5

3 원소의 개수[ | ]

리스트
lst = ['Alice','Bob','Carol']
print( len(lst) ) # 3
튜플
t = ('Alice','Bob','Carol')
print( len(t) ) # 3

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}