r/learnpython • • May 30 '20

Python cheat sheet?

I was wondering whether you guys keep a handy cheat sheet when y'all code. For example when working with a module after a long time it's obvious that we become rusty and need help with the functions and the syntax. Would be great if you guys share the links/books that you guys refer to while programming. I'm sorry if this has been asked before. Cheers!

372 Upvotes

50 comments sorted by

View all comments

41

u/MikeTheWatchGuy May 31 '20 edited May 31 '20

It's odd you mentioned this as I normally am not really looking or on the lookout for one, but last night I found what I think could possibly be the best I've ever seen.

https://gto76.github.io/python-cheatsheet/

A few things unusual about this cheatsheet.

  • It's up to date / updated. The last update was March 15, 2020

  • It's "comprehensive" and it most certainly is! Covers MANY of the popular packages along with the language itself.

  • It's huge. The PDF I created for easy searching is 52 pages

  • It's almost entirely code, that is color coded

I'm trying to figure out exactly how to integrate it into my workflow. It's so powerful that I could see it being used often, but i'm not sure how to integrate it with PyCharm or other tools.

[EDIT] My runner up and winner of most colorful and most data per square centimetre is John Oakey's https://www.wikipython.com/ . If you're looking for tkinter cheat-sheets, his are among the best.

1

u/OnlySeesLastSentence May 31 '20

I used to have a bootleg Chinese iPhone and a gif of that guy (I think it's Chaplin?) dancing would play on the built in music app.

9

u/schneedledee May 31 '20

Oh heavens. It's John Cleese. Of Monty Python.

Have we forgotten so soon the Ministry of Silly Walks?

https://youtu.be/BoIdEjdZIls?t=27

6

u/greebo42 May 31 '20

hard to believe that sketch is ~50 years old!

and dead parrot. and cheese shop. and spam. and ...

opportunity for a whole new generation to discover!