[Python] Info For IN

Lawrence Oluyede l.oluyede a gmail.com
Lun 4 Giu 2007 13:35:15 CEST


> ma non doveva stamparli in ordine contrario?!?
>         M.

Cosė allora:

In [1]: prefixes = "JKLMNOP"

In [2]: for letter in reversed(prefixes):
   ...:     print "%su" % letter
   ...:
   ...:
Pu
Ou
Nu
Mu
Lu
Ku
Ju


-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair


Maggiori informazioni sulla lista Python