Created
March 2, 2012 02:28
-
-
Save fjorgemota/1955043 to your computer and use it in GitHub Desktop.
Patinhos em Python (código completamente inútil, mas ok)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: cp1252 -*- | |
import time | |
ns = range(1,6) | |
ns.reverse() | |
for n in ns: | |
print "%d patinho%s foram passear"%(n,["","s"][n!=1]) | |
print "além das montanhas para brincar" | |
print "a mamãe gritou" | |
for x in range(1,5): | |
print "quá!" | |
print "mas só %d patinho%s"%(n,["","s"][n!=1]) | |
print "%s de lá!\n"%(["voltaram","voltou"][n==1]) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment