Latest web development tutorials

Python includes exercises 32

Python 100 Li Python 100 Li

Title: reverse order output value of the list.

Program Analysis: None.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

a = ['one', 'two', 'three']
for i in a[::-1]:
	print i

The above example output is:

three
two
one

Python 100 Li Python 100 Li