You are viewing a single comment's thread from:

RE: Python Libraries: Expanding the Functions

in STEMGeeks3 years ago

There has to be a compromise between being concise and being readable, but doing things in one line can be more efficient. There's a lot you can do with lists without resorting to a loop. Can always add a comment to make it clear what was intended.

Sort:  

There's a lot you can do with lists without resorting to a loop.

I know, still learning. I come from a VBS background and it shows.

I like that Python gives you options. You can write in the same style as some other languages, but you gradually learn the more 'Pythonic' ways.