카테고리 없음

파이썬 배열 거꾸로 출력하기

minjiwoo 2022. 1. 6. 14:49
728x90

 

array = [1,2,3,4,5]
print(array)
print(array[::-1])

결과값

 

728x90