Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

repetition

Name: Anonymous 2008-09-29 13:09

print "dongs" five times in your favorite language

with extreme conciseness/verbosity

Name: Anonymous 2008-09-30 10:34


class Dong():
    def __init__(self):
        self.text = 'dongs'
    def dong(self):
        print self.text

dongs = [Dong()]*5

for dong in dongs:
    dong.dong()

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List