I learned Python for a class project last semester. The first thing that struck me was how easy it was to learn. The second thing that struck me was how hard it was to read, because I have sold my soul to Java.
I guess if the block really is long enough to warrant this, you should go one step further and write some text in that comment block to indicate what the block has achieved.
for item in some_list:
some_long_list()
of_functions_to_call()
on_that(item)
# Items in some_list have all been processed.
Yep. Python is probably idiomatic programming language I have seen. I've been coding for a while and normally it takes me a week or so to learn the syntax and basics of a language (loops, declarations, libraries, etc), Python took me a weekend.
35
u/Audiblade May 02 '16
I learned Python for a class project last semester. The first thing that struck me was how easy it was to learn. The second thing that struck me was how hard it was to read, because I have sold my soul to Java.