r/Python • u/fuzz3289 • Feb 28 '13
What's the one code snippet/python trick/etc did you wish you knew when you learned python?
I think this is cool:
import this
259
Upvotes
r/Python • u/fuzz3289 • Feb 28 '13
I think this is cool:
import this
6
u/edeloso Feb 28 '13
I still have a fondness for the dictionary based example.
Though, to match the ternary at the top of this subthread it would be:
I like it because I feel it's the most explicit of the choices.