Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; '16,': 0.03; 'english.': 0.04; 'subject:Python': 0.06; 'string': 0.09; "person's": 0.09; 'undefined': 0.09; 'will,': 0.09; 'subject:How': 0.10; 'python': 0.11; 'jan': 0.12; '>in': 0.16; '>on': 0.16; 'cet': 0.16; 'easily,': 0.16; 'enough.': 0.16; 'garbage': 0.16; 'ideally,': 0.16; 'language?': 0.16; 'letting': 0.16; 'repl': 0.16; 's/he': 0.16; 'do,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'variable': 0.18; "python's": 0.19; 'work,': 0.20; 'written': 0.21; 'programming': 0.22; 'somewhere': 0.26; 'defined': 0.27; 'to:2**1': 0.27; 'idea': 0.28; 'chris': 0.29; 'quickly': 0.29; 'to:no real name:2**1': 0.29; "doesn't": 0.30; 'andrew': 0.30; 'cool': 0.30; 'see,': 0.30; 'along': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'lines': 0.31; 'bunch': 0.31; 'exceptions': 0.31; 'libraries': 0.31; 'probably': 0.32; 'handled': 0.32; 'languages': 0.32; 'stuff': 0.32; 'regular': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'guess': 0.33; 'could': 0.34; 'something': 0.35; 'prepare': 0.35; 'but': 0.35; 'there': 0.35; 'are,': 0.36; 'introducing': 0.36; 'programming,': 0.36; 'url:listinfo': 0.36; 'shows': 0.36; 'useful': 0.36; 'charset:us- ascii': 0.36; 'url:org': 0.36; 'should': 0.36; 'effort': 0.37; 'example,': 0.37; 'experience,': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'subject:new': 0.38; 'awesome': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'previous': 0.38; 'explain': 0.39; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'easy': 0.60; 'is.': 0.60; 'received:98.137': 0.60; 'new': 0.61; 'simple': 0.61; "you're": 0.61; 'first': 0.61; 'show': 0.63; 'different': 0.65; 'great': 0.65; 'details': 0.65; 'minutes': 0.67; 'reads': 0.68; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'received:98.136': 0.69; 'behavior': 0.77; '2015': 0.84; 'received:bullet.mail.gq1.yahoo.com': 0.84; 'mistake': 0.91; 'whereas': 0.91 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 936672.464.bm@omp1047.mail.gq1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1421429611; bh=J/DIV3fCGAa5yFS/T/1OtnR1yed8kU5835fsIPnwoZU=; h=Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=GClg30nWBY2giNnJGf22jpDk9l2a/J4R+Ps8tVcS/dxVLCOcbyWhJELM7FDFsWjDtW8rUbpkzy6hWc613ZV9k1y8zMQlHE7MKOAHZ8xPNTZMCvwkGb5shecoH4sbpT5n72W5SjsNMZ41gxL12bY37s+8uWbUrOFWROBehjk74Wc= X-YMail-OSG: NpqFyHEVM1lKoDCp4_BMD5uo_Txbilm7wCm9T.Nj9J7VDib WfESUDePSsQ9npO8Cj2yPU0W9E4jnC3iFQ.IgULh3QAsia4K5gIauyyQVNe2 x6qRZNf.Wxi0mI3OOY7Wp2j031nnrM5GzAUO0h4FZhWa.xVs2.HTGyKDg2Wl IE16w85uLfiml5laWPX5HP_.4is.cWODSzS7MqVpnhB2mHACVG8hM2Ln0zHi 2lX9bSG8IJWmfss.it2vKAOYVclGOGFQN5IO5.FcY_hAVMJElekoBBIHbCoa 3JeXa4LiBSWiC12eptfR.cVh0dw8mOyz4_4gIzjKoG7y1IQ3zSomPEveChWA jm_Yda0Um7HebmPg2io_UiAZgy.2IThCWsh3ffSjFP4dln5PoXxuHQ99aYsZ XqstfQN2dTip9ZWgOL3Ing0dLkpRBIK1IhQFFW15uV5xf7nx0lU_lGU9tKUk bjm1JWs3u7MA20zc._vRUSG3kyu3nXVVhkVzI3Ilt2ZzfnZ_wdsRrCqT4cxy j8GuVa0mwKINrUDaqEWO6E71hWA6W59pBSi1G1Ljki40P1w9WbWsTb5sIWrf aFc5jI.MneEEpQQf2YrlRC0KwXZTYX6fNLsVF3G7o6iJCzyqWSBzSkqZDU7f wD6_bjPMAb46WoWHhZoMnCfKRslOxEKh13X7dW1TjXc4n6Pnk1rw1Lj2Ozvq q3ly3rgjaV1hvCf.GVg-- X-Rocket-MIMEInfo: 002.001, Ci0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCk9uIEZyaSwgSmFuIDE2LCAyMDE1IDQ6MjQgUE0gQ0VUIEFuZHJldyBCZXJnIHdyb3RlOg0KDQo.T24gMjAxNS4wMS4xNiAwOTowMywgQ2hyaXMgQW5nZWxpY28gd3JvdGU6DQo.PiBTY2VuYXJpbzogWW91J3JlIGludHJvZHVjaW5nIHNvbWVvbmUgdG8gUHl0aG9uIGZvciB0aGUgZmlyc3QgdGltZS4NCj4.IFMvaGUgbWF5IGhhdmUgc29tZSBwcmV2aW91cyBwcm9ncmFtbWluZyBleHBlcmllbmNlLCBvciBtYXkgYmUgbmV3IHRvDQo.PiB0aGUgd2hvbGUgaWQBMAEBAQE- X-Mailer: YahooMailWebService/0.8.203.740 Date: Fri, 16 Jan 2015 09:33:31 -0800 From: Albert-Jan Roskam Subject: Re: How to "wow" someone new to Python To: aberg010@my.hennepintech.edu, python-list@python.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421429721 news.xs4all.nl 2869 [2001:888:2000:d::a6]:58366 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83888 ---------------------------- On Fri, Jan 16, 2015 4:24 PM CET Andrew Berg wrote: >On 2015.01.16 09:03, 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? >If the person is already familiar with programming, you could show off how >Python doesn't do a best effort guess at what to do when you make a mistake >(explicit is better than implicit). Many other languages will, for example, >make an undefined variable into a variable defined as an empty string or allow >silly things like 5 + "cheese", whereas Python will let you know that you made >a mistake somewhere instead of letting garbage propagate. This behavior can be >frustrating for newbies to Python, but with someone there to explain why it >works that way, they can learn to appreciate it instead of giving up in anger >after Python keeps throwing exceptions at them. > >If the person is not familiar with programming, show them how easy it is to get >something useful written quickly, even with only the stdlib Completely agree! Find out that person's itch and make a scratch.py that shows how problem-oriented the language is, with code that somewhat reads like regular English. REPL will also work, if you prepare it well enough. Ipython Notebook! >Low-level details >are handled so that you can focus on what you want the program to do, and there >is a ton of stuff in the stdlib so that it's likely you don't need to go >searching for a bunch of different libraries so that again, you can focus what >you want the program to do. For this, chances are, that person has some things >in mind already that are not difficult to get started with using Python. Also, >using the REPL for this makes it an even better demo. You can probably have the >basic functionality of whatever cool thing they want right there in the REPL. >-- >https://mail.python.org/mailman/listinfo/python-list