Latest web development tutorials

Python comprend des exercices 32

Python 100 Li Python 100 Li

Titre: valeur de sortie de l' ordre de la liste inverse.

Analyse du programme: Aucun.

Source Code:

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

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

L'exemple ci-dessus sortie est:

three
two
one

Python 100 Li Python 100 Li