file I/O and arithmetic calculation
Carlos Nepomuceno
carlosnepomuceno at outlook.com
Wed May 22 19:49:31 EDT 2013
----------------------------------------
> From: oscar.j.benjamin at gmail.com
[...]
>
> Do you find this code easy to read? I wouldn't write something like
> this and I certainly wouldn't use it when explaining something to a
> beginner.
>
> Rather than repeated list comprehensions you should consider using a
> single loop e.g.:
>
> for filename in filenames:
> # process each file
>
> This will make the code a lot simpler.
>
>
> Oscar
Indeed, but for that you can use Pascal.
List comprehensions it's what Python does best!
The code is pretty obvious to me, I mean there's no obfuscation at all.
More information about the Python-list
mailing list