How to "wow" someone new to Python

Rustom Mody rustompmody at
Fri Jan 16 18:31:33 CET 2015

On Friday, January 16, 2015 at 10:51:52 PM UTC+5:30, Mirage Web Studio wrote:
> On 01/16/2015 08:33 PM, 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?
> >
> > I was thinking along the lines of a simple demo in the REPL, showing
> > off some of Python's coolest features. But then I got stuck on the
> > specifics. What are Python's best coolnesses? What makes for a good
> > demo?
> >
> > Ideally, this should be something that can be demo'd quickly and
> > easily, and it should be impressive without going into great details
> > of "and see, this is how it works on the inside". So, how would you
> > brag about this language?
> >
> > ChrisA
> hello,
> I am a newbie to python, I have dwelled in c,qt none in java. php a lot,
> though I don't make money with any of those.
> The best thing I find is python is very easy, the best part maybe
> because of my inexperience with other languages are the List and Dict
> data types that just solved problems I had in real life made solvable
> with python very easily. when I had to worry about memory and pointers
> to memory in those other languages, python just made me focus on the
> solution I want. 

Nice point!
First class concrete data structures is a blessing especially for
a C programmer.

Here is an old Guido workout of dicts

Probably can be improved to use comprehensions

More information about the Python-list mailing list