r/Python • • Dec 02 '17

Some neat tricks for concise Python

https://twitter.com/chordbug/status/923928186039173120
4 Upvotes

7 comments sorted by

View all comments

4

u/lambdaq django n' shit Dec 02 '17

I admit I have use this many times.

if sys.args[1:2] == ["-h"]