역순으로 순회하고 싶을 땐 reversed object를 사용한다!

a = [1,2,3,4,5]

for i in reversed(a):
	print(i)

스택오버플로우

profile
Visual Programming is in Progress..

0개의 댓글