Re:Display 100 Hello World Without Using Loops
by codeape on Friday May 25, 2012 @06:33AM
(#4022876)
Why the exec?
[ Parent
| on HN ]
That was the first thing that popped into my head upon reading the headline, though I abstracted it a bit:
def print_many(n):
print("hello, world\n" * n)
Though the `exec` option given above certainly is... interesting. :)