On 24/05/2021 16:54, Michael F. Stemper wrote: > In my early days of writing python, I created lists named "list", > dictionaries named "dict", and strings named "str". I mostly know better > now, but sometimes still need to restrain my fingers.
I think most newbie programmers make that mistake. I certainly did when learning Pascal back in the 80's. But I was lucky, the tutorials were run by a guy who penalized bad variable names severely and took a half-mark off for every bad name. We very quickly learned to choose names that were descriptive of the purpose rather than the type. Its a lesson that I've never forgotten! -- 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 -- https://mail.python.org/mailman/listinfo/python-list