On 24/01/2017 15:51, Ben Bacarisse wrote:
Chris Angelico <ros...@gmail.com> writes:
<snip>
... I teach JavaScript as well as Python, and I've seen some
pretty horrendous indentation flaws (examples available if people ask
privately, but I will anonymize them because I'm not here to shame
students) - but there have been nearly as many cases where the
indentation's fine and the bracket nesting isn't.
Can I ask what editor(s) your students have available? I ask because
I've not given a moment's thought to indentation or what bracket matches
what for decades due to having a helpful editor.
How would your editor detect the error in the example I gave earlier?
(Where a tab has been inadvertently removed - or added - but the result
is still valid Python code.)
--
Bartc
--
https://mail.python.org/mailman/listinfo/python-list