Colin's Blog
[python] 집합의 원소 개수를 확인하는 메소드는 어떤 것이 있나요?
08 Dec 2023
python
my_set
=
{
1
,
2
,
3
,
4
,
5
}
size
=
len
(
my_set
)
print
(
size
)
# 출력 결과: 5
Please enable JavaScript to view the
comments powered by Disqus.