[Edu-sig] some real teaching code I use with my code school students

kirby urner kirby.urner at gmail.com
Sun Mar 20 03:13:48 EDT 2016


On Fri, Mar 18, 2016 at 6:18 PM, kirby urner <kirby.urner at gmail.com> wrote:

> Here's some code I used with students last Monday, in Session 8 of 10.
>
> They've covered all the Python keywords as of Session 7 but we still need
> to keep going over all we've learned, seeing how the concepts mesh
> together.
>
>
In light of some subsequent off-list chit chat I should hasten to add that
my quoted code was not really "Pythonic" as we like to say.

I was exercising some grammatical constructs we'd been over, trying to
dense-pack them into a "game" with a plot (guess a secret word).  Context
manager, decorator, subclassed exceptions, function generator... all
working together but not in a very realistic way.  Code designed to show
off constructs working together has a somewhat artificial flavor.

There'd be way more straightforward ways to create that user experience,
most definitely!

I need to make sure my students realize this when we do Session 9 on Monday.

And now for something completely different:

http://insights.cermacademy.com/2016/03/131/

Comments welcome.

Kirby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20160320/ba3a9c70/attachment.html>


More information about the Edu-sig mailing list