Skip to content

Instantly share code, notes, and snippets.

@fjorgemota
Created March 2, 2012 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjorgemota/1955043 to your computer and use it in GitHub Desktop.
Save fjorgemota/1955043 to your computer and use it in GitHub Desktop.
Patinhos em Python (código completamente inútil, mas ok)
# -*- 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