개발/python

[Python] 배열 출력하기

dotudy 2023. 8. 14. 15:32

arr = [1, 2, 1, 1, 0] 일 때

print(arr[0:])

[1, 2, 1, 1, 0]

 

print(*arr[0:])

1 2 1 1 0