On Fri, Mar 18, 2016 at 6:18 PM, kirby urner <kirby.ur...@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
_______________________________________________
Edu-sig mailing list
Edu-sig@python.org
https://mail.python.org/mailman/listinfo/edu-sig

Reply via email to