Skip to content

Commit eb7c179

Browse files
authored
Create 2.py
1 parent 6461829 commit eb7c179

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

6/2.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 0 인덱스와 1 인덱스의 원소 교체하기
2+
array = [3, 5]
3+
array[0], array[1] = array[1], array[0]
4+
5+
print(array)

0 commit comments

Comments
 (0)