You don't identify yourself
This is another interpretation of Eric's task. This time in functional way, python incarnation.
import itertools, sys
[sys.stdout.write('%s) Hello, %s\n' % tuple(reversed(item))) \
for item in itertools.izip(
itertools.repeat(raw_input('Please enter your name: ')),
xrange(int(raw_input('Please enter your age: '))))]
[Functional Python] http://aartemenko.com/texts/python-functional-hello-meme/
Comments
Subscribe on this post's comments
permalink
permalink
I know about izip, but leave 'zip' in favour of simplicity.
permalink
Haha, this is a two-liner! That's awesome.
permalink
Actually, you could write:
import itertools, sys; blah blah blahin one line.If you wish to leave comment, please, identify yourself and then come back to this page.