코드:
실행 »
표준입력/실행옵션
set1 = {1, 2, 3} set1.add(4) print(set1) set1.update((5, 6)) print(set1) set1.remove(2) print(set1)
x
1
set1
= {
1
,
2
,
3
}
2
3
set1
.
add
(
4
)
4
print
(
set1
)
5
6
set1
.
update
((
5
,
6
))
7
print
(
set1
)
8
9
set1
.
remove
(
2
)
10
print
(
set1
)
11
표준입력 & 실행옵션
Close
표준입력 (stdin)
실행옵션 (runtime option)
입력
Cancel