r/Python • • Nov 14 '17

Senior Python Programmers, what tricks do you want to impart to us young guns?

Like basic looping, performance improvement, etc.

1.3k Upvotes

629 comments sorted by

View all comments

2

u/pycepticus from pprint import pprint as print Nov 14 '17

Code complete and PEP8 makes me the developer I ain't.

Also , list comprehension is probably the closest thing to witchcraft python can do. Learn that.

1

u/drbobb Nov 14 '17

And generator expressions are like list comprehensions that grew up.