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
1
u/matthewguitar Feb 28 '13
Also:
bool('True')
True
bool('False')
True
You have to use 1 and 0 instead :)