Nested for loops and print statements
Marko Rauhamaa
marko at pacujo.net
Mon Sep 26 17:09:51 EDT 2016
Cai Gengyang <gengyangcai at gmail.com>:
> What is a tab and what is a space in python and what's the difference
> ?
>
> Which piece of code is indented with tabs and which one is indented
> with spaces ?
Key questions that Python gurus are having a hard time answering!
Equally confusing, you might run into this phantom phenomenon:
>>> if True:
... a = 3
File "<stdin>", line 2
a = 3
^
SyntaxError: invalid character in identifier
It might be useful to have a mode that echoes each input line as seen by
Python (repr).
Marko
More information about the Python-list
mailing list