2 ms·
I teach Python to beginners, some of whom have had a CS class (e.g. in Java). I try to avoid idioms early on, such as list comprehensions and context managers,
by danso 9y ago
I teach Python to beginners, some of whom have had a CS class (e.g. in Java). I try to avoid idioms early on, such as list comprehensions and context managers, and slowly introduce them after students are confident with loops and such. It does feel painful and backwards, though, which is ironic for me to feel when I consider how confused/annoyed I was with Python initally when coming from Ruby.