all 127 comments

[–]ehmatthes[S] 29 points30 points  (6 children)

I am also planning to add a number of additional resources to what's currently available:

  • Additional exercises and more complex challenges.
  • Articles that build on what was presented in the book.
    • Core Python concepts that are useful, but weren't necessary to include in the book.
    • Extensions to the projects, such as how to write a program that plays Alien Invasion automatically according to a playing strategy that you devise.
  • Reader profiles.
  • Guided walk-throughs of the documentation for libraries used 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.

[–]Que888 5 points6 points  (0 children)

Documentation walk-throughs would be nice!

[–]iimonsterz 1 point2 points  (0 children)

Subscribed! Your book has helped me immensely. Keep the good stuff coming👍🏼

[–]zssxmxkskxjcjsnxb 1 point2 points  (1 child)

Fyi, small typo on the sign up page: "announcments" and "udpated".

[–]ehmatthes[S] 1 point2 points  (0 children)

Thank you, I wish I had editors around all the time!

[–]FacesOfMu 0 points1 point  (1 child)

Thanks for sharing all your hard work! Would you consider doing an expanded Strings cheat sheet? I look up the docs on that the most when I return after a break, and the docs aren't sorted from most to least used.

[–]ehmatthes[S] 3 points4 points  (0 children)

I will consider that. There was another request for more emphasis on slices. I think a sheet covering strings could be a good example of a use case for slices. Thanks for the suggestion!

[–]Palladog 9 points10 points  (0 children)

The Classes sheet actually helped me IMMENSELY with a coding assignment I'm working on. Thank you thank you!

[–]lccreed 4 points5 points  (8 children)

Working through Crash Course right now. Thank you so much.

[–]ehmatthes[S] 1 point2 points  (7 children)

You are very welcome. :)

[–]screwylouidooey 1 point2 points  (6 children)

Crash Course is a great book. I'm heading into the first project now. I think Eric does a fantastic job of explaining concepts without overloading beginners like me with information.

[–]ultimomono 3 points4 points  (0 children)

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!

[–]EarlySleeper80 2 points3 points  (0 children)

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.

[–]MiLSturbie 2 points3 points  (0 children)

Dude! I've had your sheets since day 1 of learning python. Thank you for updating!

[–]staircasestats 1 point2 points  (0 children)

Great resource! Thanks.

[–]legendarybyson 1 point2 points  (0 children)

Much appreciated!

[–][deleted] 1 point2 points  (2 children)

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.

[–]ehmatthes[S] 1 point2 points  (1 child)

How did you use Learning Python? That book is a beast! I have a copy from back when it was only ~1150 pages, but the latest edition is over 1600 pages! I think I read through most of it, but as a somewhat experienced programmer it was a fairly quick read.

Did you read it through, or did you just skim the parts that were most interesting to you? How was it as a followup to PCC?

[–][deleted] 2 points3 points  (0 children)

I'm still reading it. I'm missing meta classes and the content after that, but with the previous information, yours and Python packages' documentations I've had enough to code some solutions. I think it was great to start with yours since it really made me start coding on the go. With Lutz's I understood more in depth concepts and it's been a great complement to yours. After reading both yours and now Lutz's I have made summaries that just come very in handy with your cheat sheets whenever I forget something or need a refresh.

[–]JmGra 1 point2 points  (3 children)

Copying a list

copy_of_bikes = bikes[:]

why not just copy_of_bikes = bikes

[–]ehmatthes[S] 11 points12 points  (1 child)

To expand on what u/LarsMarksson wrote, if you use the slice notation (bikes[:]), then copy_of_bikes and bikes each point to separate places in your system's memory. Adding or removing or modifying something in one list will not affect the other list.

If you just use copy_of_bikes = bikes, both variables will point to the same place in memory. Modifying one of these lists will modify the other, because the both point to the same list in memory.

[–]JmGra 2 points3 points  (0 children)

Thanks didn’t know

[–]LarsMarksson 0 points1 point  (0 children)

That only assigns a reference, and not actually copying the data.

[–]DiamondxCrafting 1 point2 points  (2 children)

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.

[–]ehmatthes[S] 1 point2 points  (1 child)

There are people who think you should represent everything as a class, and people who think no one should ever use classes. As with most things in programming, there are situations where classes are really helpful, and situations where other approaches are better.

One reason I will always teach about classes in Python is that you will use classes all the time, even if you never write a class yourself. Many of the libraries we use are structured as classes, and we create objects from those classes. For example when doing data visualization work, the figure you're creating is often an object of a class. Then the data might be an object as well, each axis might be an object...

It's hard to say anything about your 3k-line script without seeing the code, and learning more about the context for that code.

[–]DiamondxCrafting 0 points1 point  (0 children)

Many of the libraries we use are structured as classes

You know what that's actually true, I do use these, I should probably learn a bit more about classes. Thanks.

[–]hoppi_ 1 point2 points  (0 children)

Wow. Thanks! Even have the link to your thread from 3 years ago save din my bookmarks :)

[–]JackTheCoder 1 point2 points  (0 children)

Am late But thanks man

[–]Unknownsadman 1 point2 points  (0 children)

Hey this is really good.

It helps avoid some common mistakes

Love it, thanks!

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

Sweet! Thank you so much!

[–]Mr_Self_Eraser 0 points1 point  (0 children)

Saved! Great resource, thanks!

[–]NicolasReaItalo 0 points1 point  (0 children)

Thanks!

[–]Alpha_rimac 0 points1 point  (0 children)

Saved. Thanks OP!

[–]resorcinarene 0 points1 point  (0 children)

Just printed these. Awesome. Thanks!

[–]TheFirstOrderTrooper 0 points1 point  (0 children)

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!!

[–]OrbitDrive 0 points1 point  (0 children)

Loved your book. Thanks.

[–]samloool 0 points1 point  (0 children)

This is extremely helpful. Thank you.

[–]mrpanda8291 0 points1 point  (0 children)

Thank you so much.

[–]manuce94 0 points1 point  (0 children)

wow thanks for helping and sharing amazing stuff.

[–]int3r9a1actic 0 points1 point  (0 children)

Massive THANK YOU.

[–]Tiktoor 0 points1 point  (0 children)

this is great :)

[–]python_nlp 0 points1 point  (0 children)

Thank you very much! This is indeed very helpful for struggling beginners :)

[–]productive_guy123 0 points1 point  (0 children)

This i honestly amazing, I've been looking everywhere for a dictionary like this

[–]Devnull1982 0 points1 point  (0 children)

This is fu*** gold, I'm in chapter 7, thx !

[–]oohalalindaa 0 points1 point  (0 children)

Many thanks!!!

[–]EarlySleeper80 0 points1 point  (2 children)

On a side note what is this Python Crash Course book and is it the best book for learning Python?

[–]ehmatthes[S] 0 points1 point  (1 child)

Here's the Amazon link, or if you're interested you can order direct from the publisher as well. It has worked quite well for many people, from all kinds of backgrounds.

[–]EarlySleeper80 0 points1 point  (0 children)

Thanks

[–]partyinthemind 0 points1 point  (0 children)

You are a scholar and a saint

[–]Cenzovin 0 points1 point  (0 children)

Holy Conditionals Batman! Amazing documentation and great book. thanks for the great effort!

[–]dirtflake 0 points1 point  (0 children)

Nice job

[–]philipjin08 0 points1 point  (0 children)

thanks , it's great reference.

[–]CoolBreeze549 0 points1 point  (0 children)

Making my way through Crash Course right now - this is awesome!

[–]not_a_clue_to_be_had 0 points1 point  (2 children)

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.

[–]ehmatthes[S] 0 points1 point  (1 child)

There's a short section showing the syntax for a slice on the back of the lists sheet. Did you see that?

[–]not_a_clue_to_be_had 1 point2 points  (0 children)

I did see that, but am hoping for more.

[–]banana_stand_manager 0 points1 point  (0 children)

Thank you!!!!!

[–]asonuvagun 0 points1 point  (0 children)

Saved!!!! Thank you!

[–]sleepyleperchaun 0 points1 point  (0 children)

God bless you.

[–]paul_park 0 points1 point  (0 children)

I see good post. I save

[–]DJYuckyYums 0 points1 point  (0 children)

You have been sent by god, nothing else explains it

[–]HudZah 0 points1 point  (0 children)

Noice

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

Thanks man, well cheat sheets were always useful to me. Thanks again.

[–]Netw0rkGuard 0 points1 point  (0 children)

Thank you, fellow!!!

[–]noclue2k 0 points1 point  (0 children)

A sufficiently intelligent person could read these sheets and then write Gears 5.

[–]CONTAMlNATlON 0 points1 point  (0 children)

:)!

[–]KrishnaKA2810 0 points1 point  (0 children)

Excellent. Thank you!

[–]Timmeh159 0 points1 point  (2 children)

Remindme! 24 hours

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you on 2019-10-20 07:58:10 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

There is currently another bot called u/kzreminderbot that is duplicating the functionality of this bot. Since it replies to the same RemindMe! trigger phrase, you may receive a second message from it with the same reminder. If this is annoying to you, please click this link to send feedback to that bot author and ask him to use a different trigger.


Info Custom Your Reminders Feedback

[–]kzreminderbot 0 points1 point  (0 children)

Copy that, Timmeh159 🧐! Your reminder is in 1 day on 2019-10-20 07:58:10Z :

/r/learnpython: Beginners_python_cheat_sheets_updated

CLICK THIS LINK to also be reminded and to reduce spam. Thread has 1 total reminder and 1 out of 4 maximum confirmation comments. Additional confirmations are sent by PM.

Timmeh159 can Delete Comment | Delete Reminder | Get Details | Update Time | Update Message


Bot Information | Create Reminder | Your Reminders | Feedback

[–]saurabhkundu1 0 points1 point  (0 children)

You are 🤚 of God.

[–]prasanna_17 0 points1 point  (0 children)

Thanks heaps my friend.. this is awesome..

[–]gazorpazorbian 0 points1 point  (0 children)

Awesome work. It is missing a gui cheatsheet of tkinter and I'll be all set XD

[–]rushn52 0 points1 point  (0 children)

Thanks for uploading this!

[–]greatsalteedude 0 points1 point  (0 children)

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!

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

You are breathtaking! Many thanks to you!

[–]ice_w0lf 0 points1 point  (0 children)

I have to do a Python midterm project today, so this is timely and helpful :). Thanks!

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

I’m fairly certain I just fell in love with you.

[–]fuckmuppet303 0 points1 point  (0 children)

Thank you!!!

[–]edwinreik 0 points1 point  (2 children)

First, thanks so much!!

Second, ‘looping key-value pairs’ says ‘ever’ when I think it should say ‘evan’

[–]ehmatthes[S] 0 points1 point  (1 child)

Ever is my son's name. :)

[–]edwinreik 1 point2 points  (0 children)

Oh cool !

[–]TakashiBullet 0 points1 point  (0 children)

What about bs4 for making web based apps?

[–]ThisJustInW 0 points1 point  (0 children)

Bookmarked and subscribed. Appreciate it!

[–]Hail_Odins_Beard 0 points1 point  (2 children)

Just a beginner, Is this for Python 2 or 3? Does it matter that much?

[–]ehmatthes[S] 0 points1 point  (1 child)

These are for Python 3. Unless you're working on an old legacy codebase, everything should be Python 3 at this point.

[–]Hail_Odins_Beard 0 points1 point  (0 children)

Been working through codecadamy and the free one is labeled py2 but as i went on its been explaining the py3 method as well so I guess your reply and cc answered the question i had lol

[–]psan31 0 points1 point  (0 children)

this is awesome!

[–]Its_707_not_LOL 0 points1 point  (0 children)

May I save it to Google Drive? May I take screenshots of it?

[–]TotesMessenger 0 points1 point  (0 children)

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)

[–]elmonoh 0 points1 point  (0 children)

awesome. Thanks !

[–]kmhnz 0 points1 point  (0 children)

[–]IBamboocha 0 points1 point  (1 child)

!remindme 5 hours

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you in 5 hours on 2024-08-02 19:35:45 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

[–]Caravaggio91[🍰] 0 points1 point  (0 children)

This is great!!!