YouTip LogoYouTip

Python Exercise Example32

# Python2.x Python Exercise Example 32 [![Image 3: Python 100 Examples](#) Python 100 Examples](#) **Question:** Output the values of a list in reverse order. **Program Analysis:** None. Program source code: ## Example #!/usr/bin/python# -*- coding: UTF-8 -*-a = ['one', 'two', 'three']for i in a[::-1]: print(i) The output of the above example is: three two one [![Image 4: Python 100 Examples](#) Python 100 Examples](#)
← Python Exercise Example33Python Exercise Example31 β†’