[Tutor] iterators

Alan Gauld alan.gauld at yahoo.co.uk
Mon Jul 4 19:47:27 EDT 2016


On 04/07/16 21:38, Colby Christensen wrote:

> elif keycode in (47, 392):
>     self.div()
> elif keycode in (27):
>     self.clear_all()

I meant to say...

> I then tried using
> 
> elif keycode == 27:
> 
> but this statement didn't work. 

I'm not sure why that didn't work.
What exactly happened? Did you get a different error message?
If so what?


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list