arr = [1, 2, 1, 1, 0] 일 때
print(arr[0:])
[1, 2, 1, 1, 0]
print(*arr[0:])
1 2 1 1 0
'개발 > python' 카테고리의 다른 글
[백준 1546번] 평균 - python (1) | 2024.11.23 |
---|---|
[백준 11720번] 숫자의 합 - python (1) | 2024.11.23 |
[python] 배열과 리스트 (0) | 2024.11.23 |
[백준 2750번] 수 정렬하기 - python (1) | 2024.11.21 |
[Python] 시간 복잡도 표기법 알아보기 (1) | 2024.11.21 |