On 10/14/2018 1:42 PM, Mats Wichmann wrote:
Hint here: don't use 'map' as your own variable name, since it's a
built-in function.
Absolutely, I am always warning others about this gotcha. In this case
map is local to add_to_map so it does not affect then global namespace.
The reason I used it here was because the OP was using map (actually
Map). Duh!
Bob
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor