r/learnpython • u/ehmatthes • Oct 18 '19
Beginner's Python Cheat Sheets (updated)
Hi everyone! A few years ago I made a set of cheat sheets to go along with the first edition of Python Crash Course. I recently finished updating the cheat sheets to match the changes that were made to the second edition of the book. These sheets aim to remind you of Python's syntax, but they also include brief explanations of the concepts behind the syntax as well. These are all free to download, and they are not specific to the book - they should be helpful to many people, regardless of what your primary learning resource is.
The first sheet provides an overview of many basic concepts in Python. Individual sheets cover lists, dictionaries, if statements and while loops, functions, classes, and more. There are also library-specific cheat sheets for Pygame, Matplotlib, Plotly, and Django. You can download individual sheets, download a pdf that includes all the sheets in one document, or download a zip file that includes each sheet in a separate pdf file. Here's an overview of all the sheets, with links to download whichever version is most appropriate for you.
Cheat sheets have been really helpful to me at times when learning a new language or framework, and I continue to use the library-focused sheets when starting new projects. I hope these are useful to many of you as well.
31
u/ehmatthes Oct 18 '19
I am also planning to add a number of additional resources to what's currently available:
Articles that build on what was presented in the book.
I won't post about each of these here when they're available, because that would become pretty spammy. If you'd like to know about each of these when they become available, you can sign up for an email newsletter here. I do not send frequent emails, and I make it as easy as possible to unsubsucribe if you no longer want these notifications.
6
u/lccreed Oct 18 '19
Working through Crash Course right now. Thank you so much.
2
u/[deleted] Oct 18 '19
Man, I came back to learn Py with your book a few years ago and followed up with Mark Lutz's book. I'm very thankful for your book and cheat sheets! Thanks.
2
u/JmGra Oct 18 '19
why not just copy_of_bikes = bikes
2
u/DiamondxCrafting Oct 18 '19
I've got a question, is it expected to use classes a lot? I've never used them in any of my scripts (one being ~3k lines). I just haven't needed them or so I think.
11
u/Palladog Oct 18 '19
The Classes sheet actually helped me IMMENSELY with a coding assignment I'm working on. Thank you thank you!
4
u/ultimomono Oct 19 '19
Big thanks!!! I use your cheatsheets all the time and just printed them out and sent them to my son to use. So you've gone multigenerational!
1
u/EarlySleeper80 Oct 18 '19
On a side note what is this Python Crash Course book and is it the best book for learning Python?
1
u/not_a_clue_to_be_had Oct 19 '19
These are awesome, thanks!
Any chance you could make one for slices? I'm still very much a beginner and have the hardest time remembering how to use them.
1
u/edwinreik Oct 19 '19
First, thanks so much!!
Second, ‘looping key-value pairs’ says ‘ever’ when I think it should say ‘evan’
1
u/Hail_Odins_Beard Oct 23 '19
Just a beginner, Is this for Python 2 or 3? Does it matter that much?
3
u/EarlySleeper80 Oct 18 '19
Thank you very much. This might be my very first comment (I think) but I feel like it feels wrong to use this without at least saying thank you.
3
u/MiLSturbie Oct 19 '19
Dude! I've had your sheets since day 1 of learning python. Thank you for updating!
2
u/staircasestats Oct 18 '19
Great resource! Thanks.
2
u/legendarybyson Oct 18 '19
Much appreciated!
2
u/hoppi_ Oct 19 '19
Wow. Thanks! Even have the link to your thread from 3 years ago save din my bookmarks :)
2
u/JackTheCoder Nov 12 '19
Am late But thanks man
2
u/Unknownsadman Dec 08 '19
Hey this is really good.
It helps avoid some common mistakes
Love it, thanks!
1
u/[deleted] Oct 18 '19
Sweet! Thank you so much!
1
u/Mr_Self_Eraser Oct 18 '19
Saved! Great resource, thanks!
1
u/NicolasReaItalo Oct 18 '19
Thanks!
1
u/Alpha_rimac Oct 18 '19
Saved. Thanks OP!
1
u/resorcinarene Oct 18 '19
Just printed these. Awesome. Thanks!
1
u/TheFirstOrderTrooper Oct 18 '19
I have the book right next to me! I am doing Colt Steeles python bootcamp but I use the book to look things up.
This is a god send, thank you so much!!
1
u/OrbitDrive Oct 18 '19
Loved your book. Thanks.
1
u/samloool Oct 18 '19
This is extremely helpful. Thank you.
1
u/mrpanda8291 Oct 18 '19
Thank you so much.
1
u/manuce94 Oct 18 '19
wow thanks for helping and sharing amazing stuff.
1
u/int3r9a1actic Oct 18 '19
Massive THANK YOU.
1
u/Tiktoor Oct 18 '19
this is great :)
1
u/python_nlp Oct 18 '19
Thank you very much! This is indeed very helpful for struggling beginners :)
1
u/productive_guy123 Oct 18 '19
This i honestly amazing, I've been looking everywhere for a dictionary like this
1
u/Devnull1982 Oct 18 '19
This is fu*** gold, I'm in chapter 7, thx !
1
u/[deleted] Oct 18 '19
Many thanks!!!
1
u/partyinthemind Oct 18 '19
You are a scholar and a saint
1
u/Cenzovin Oct 18 '19
Holy Conditionals Batman! Amazing documentation and great book. thanks for the great effort!
1
u/dirtflake Oct 19 '19
Nice job
1
u/philipjin08 Oct 19 '19
thanks , it's great reference.
1
u/CoolBreeze549 Oct 19 '19
Making my way through Crash Course right now - this is awesome!
1
u/banana_stand_manager Oct 19 '19
Thank you!!!!!
1
u/asonuvagun Oct 19 '19
Saved!!!! Thank you!
1
u/sleepyleperchaun Oct 19 '19
God bless you.
1
u/[deleted] Oct 19 '19
Thanks man, well cheat sheets were always useful to me. Thanks again.
1
u/Netw0rkGuard Oct 19 '19
Thank you, fellow!!!
1
u/noclue2k Oct 19 '19
A sufficiently intelligent person could read these sheets and then write Gears 5.
1
u/CONTAMlNATlON Oct 19 '19
:)!
1
u/KrishnaKA2810 Oct 19 '19
Excellent. Thank you!
1
u/Timmeh159 Oct 19 '19
Remindme! 24 hours
1
u/saurabhkundu1 Oct 19 '19
You are 🤚 of God.
1
u/prasanna_17 Oct 19 '19
Thanks heaps my friend.. this is awesome..
1
u/gazorpazorbian Oct 19 '19
Awesome work. It is missing a gui cheatsheet of tkinter and I'll be all set XD
1
u/rushn52 Oct 19 '19
Thanks for uploading this!
1
u/greatsalteedude Oct 19 '19
Good God, thank you very much for this!
I usually make similar kind of cheat sheets for all my subjects, but never got to doing the same for python. You just helped me out a ton!
1
u/[deleted] Oct 19 '19
You are breathtaking! Many thanks to you!
1
u/ice_w0lf Oct 19 '19
I have to do a Python midterm project today, so this is timely and helpful :). Thanks!
1
u/[deleted] Oct 19 '19
I’m fairly certain I just fell in love with you.
1
u/fuckmuppet303 Oct 19 '19
Thank you!!!
1
u/TakashiBullet Oct 19 '19
What about bs4 for making web based apps?
1
u/ThisJustInW Oct 19 '19
Bookmarked and subscribed. Appreciate it!
1
u/psan31 Oct 25 '19
this is awesome!
1
u/[deleted] Nov 05 '19
May I save it to Google Drive? May I take screenshots of it?
1
u/TotesMessenger Nov 15 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/elmonoh Jan 02 '20
awesome. Thanks !
1
u/kmhnz Apr 07 '24
The *Best Python Cheat Sheet: https://kieranholland.com/best-python-cheat-sheet/
1
u/IBamboocha Aug 02 '24
!remindme 5 hours
1
u/Muad_Dib_of_Arrakis Dec 11 '24
1
u/Caravaggio91 Feb 10 '22
This is great!!!
0
u/[deleted] Oct 18 '19
[deleted] — view deleted comment
0
u/[deleted] Oct 18 '19
[deleted] — view deleted comment
0
u/[deleted] Oct 19 '19
[deleted] — view deleted comment
0
u/[deleted] Oct 21 '19
[deleted] — view deleted comment
0
u/[deleted] Oct 19 '19
[deleted] — view deleted comment
150
u/[deleted] Oct 18 '19
[removed] — view removed comment
8
u/[deleted] Oct 18 '19
[removed] — view removed comment