Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Patinhos em Python (código completamente inútil, mas ok)
# -*- coding: cp1252 -*-
import time
ns = range(1,6)
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])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.