How to "wow" someone new to Python

alex23 wuwei23 at gmail.com
Mon Jan 19 07:19:57 CET 2015


On 17/01/2015 1:03 AM, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Python is. What do you do?

When demoing to people with a reasonable amount of experience, I've 
found they're often impressed by showing them list comprehensions, then 
generators, then chained generators.




More information about the Python-list mailing list