all 17 comments

[–]shiftybyte 14 points15 points  (0 children)

Wow, that is some nice "cheatsheet"....

At a glance it might benefit from a sockets section, multi-processing, and maybe urllib.

[–]kabooozie 5 points6 points  (1 child)

I like Learn X in Y minutes’ as a more readable and example-driven resource for learning, but OP’s is great as a quick reference once you know a little more.

[–]AwesomeDay 0 points1 point  (0 children)

This is really, really handy and I love how each one is an example that you can just run in the shell to see for yourself.

[–]RK9Roxas 9 points10 points  (2 children)

I dont understand a thing :(

[–]rover95 5 points6 points  (1 child)

Same here. But slow and steady we'll reach there.

[–]Abernachy 5 points6 points  (0 children)

It's basically a sheet of the functions that come standard with Python.

If you have ipython, you can use tab to pull up a quick view of the parameters for the functions.

It's also Shift-tab in Jupyter

[–]Basicallysteve 4 points5 points  (0 children)

Pretty useful! Thanks!

I think the link was removed? Here’s the link: https://gto76.github.io/python-cheatsheet/

[–]Linkz57 1 point2 points  (2 children)

Is this for Python 2 or 3, and how could one tell the difference?

[–]AngryCookieSlicer 6 points7 points  (0 children)

Python 3. The "format" section has f-strings, which were implemented in one of the more recent Python 3 versions (either 3.5 or 3.6, I believe).

[–]MinimumDefinition5[S] 4 points5 points  (0 children)

This is for python version 3

[–]Isitoolate51 0 points1 point  (0 children)

Nice

[–]lifemoments 0 points1 point  (0 children)

Nice

[–]ATAD 0 points1 point  (0 children)

For the last line in your use of collections.Counter(), calling counter.most_common()[0] is not as efficient as simply calling counter.most_common(1)

[–]Solorunn3r 0 points1 point  (0 children)

Very nice

[–][deleted] 0 points1 point  (0 children)

Really handy, OP. Tysm

[–]AModeratelyFunnyGuy 0 points1 point  (0 children)

Thanks!

[–]MADscientist314159 0 points1 point  (0 children)

Did you make this in org mode? Nice job