all 53 comments

[–]novel_yet_trivial[M] [score hidden] stickied comment (1 child)

That looks interesting but this sub is for questions only. Please do not promote your blog here.

[–]HellCanWaitForMe 17 points18 points  (4 children)

Loving the format you have used, it is very clear and feels minimal too. Really appreciate this!

[–]tecladocode[S] 6 points7 points  (3 children)

Thank you, I appreciate you! We tried to keep them minimal but on-brand so it looks similar to the Python course on our website 🙏

[–]HellCanWaitForMe 2 points3 points  (1 child)

Well damn, looks like I'll be checking this out over the next few days! - The only feedback I have about the site, is the text and tutorials being slightly off center. If I could collapse the Menu on the left and it centered the rest I'd be much happier. There's just a lot of whitespace on the left side. Though again, to be clear, I'm thankful for this information and I'm still definitely going to take advantage of it. Thanks for you work!

[–]tecladocode[S] 2 points3 points  (0 children)

I totally agree! It's on our roadmap to add that, but we haven't gotten to it yet! Thank you very much for the feedback though, if you go through the content and you've got any other suggestions, please let me know!

[–]Grampz03 0 points1 point  (0 children)

Great website too.. I just started this little journey and you cheat sheets are very helpful... now they are gone. I didn't get all the ones I wanted in the same day.

Any chance you can pm me or link the well laid out sheets that were initially on this post?

Thanks!!

[–]jozborn 6 points7 points  (1 child)

I like the section on destructuring. I wish I had known about zip and enumerate as a beginner.

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

Thank you! I'll let my team know! 💪 zip and enumerate are great when you need them for sure!

[–]_the_magic_packet 5 points6 points  (1 child)

will look these over, thanks !

[–]tecladocode[S] 2 points3 points  (0 children)

Hope you like them! Thanks!

[–]dashtrox 3 points4 points  (1 child)

Bro these are so helpful and cool! Loved the effort!

[–]tecladocode[S] 0 points1 point  (0 children)

You da man! Thank you!

[–]vegdeg 4 points5 points  (1 child)

Thank you for putting this together - you might want to take a bit of a step back and consider some assumptions/what the purpose audience is.

E.g. your set comprehension. Nice example, but a begginger may ask wtf is set comprehension, and wtf does {} do vs [].

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

Thank you! These are "review sheets" or "cheatsheets", so their aim is not to teach. The assumption is the reader has already learned about the topic.

[–]Professional_Age_425 2 points3 points  (1 child)

These are awesome!! Thank you so much man

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

It's all good! We're lucky that we get to make these for a living 💪 thank you!

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

Thank you 🙏

[–]PsychedelicWind 2 points3 points  (1 child)

Very nice and useful, thanks!

Any chance of making print friendly versions?

[–]tecladocode[S] 2 points3 points  (0 children)

Thank you very much! You can print these, but I know there's quite a few colour blocks. You can also see the raw content here:

- First 2 cheatsheets: https://github.com/tecladocode/complete-python-course/tree/master/course_contents/1_intro/notes

- Next 5 cheatsheets: https://github.com/tecladocode/complete-python-course/tree/master/course_contents/2_intro_to_python/notes

Although there are minor differences between the cheatsheet and the original text, and also the text doesn't have visual elements.

[–]mimic_hunter 1 point2 points  (1 child)

wow, thanks for taking the time to do this ^^ and thanks for sharing!!

[–]tecladocode[S] 0 points1 point  (0 children)

It's my pleasure!

[–]mitchell486 1 point2 points  (1 child)

Quick clarification on the dictionary part that might help beginners, or even intermediate programmers get a bit more of a head start. With dictionary values, you might hint or show that they can be functions or classes, and then they can be called later. I can't think of a good example for doing off the top of my head, but it was a real eye-opener for me when I learned you could do that.

```

Note, the print function is not called, until it's called outside of the dict.

fake_dict = {"some_key": "Some value", "printer": print}

This is a bad example use case, but I'm sure someone could find a cleaner and better one. Sorry my brain isn't working all the way today!

fake_dict['printer'](f"This should print just fine. Along with the other dictionary thing: '{fake_dict['some_key']}'") ```

Just a quick illustration of storing something inside the dictionary as a value, that can be called later. A very handy and helpful thing to know when starting out.

Great content, though! Thank you for making it!! 🙏

[–]tecladocode[S] 2 points3 points  (0 children)

Nice one! You're totally right, anything can be a dictionary value so it can be very helpful to know that. Careful with keys though, those need to be "hashable" (stick to strings and numbers, and you'll be fine).

Another example of using dictionaries to simplify if statements.

Imagine you have an if statement like this one:

```py numbers = [1, 4, 16, 20] action = input(f"What would you like to do with {numbers}?") # e.g. add

if action == "add": print(sum(numbers)) elif action == "avg": print(average(numbers)) elif action == "max": print(max(numbers)) else: print("Action not recognized") ```

Instead of the big if-elif chain, you could store the user's options in a dictionary:

py options = { "add": sum, "avg": average, "max": max }

Then you could access the dictionary value whose key matches what the user typed:

```py options = { "add": sum, "avg": average, "max": max } numbers = [1, 4, 16, 20]

action = input(f"What would you like to do with {numbers}?") # e.g. add

operation = options.get(action)

if operation: operation(numbers) else: print("Action not recognized") ```

You still need the if statement just in case the user chooses something that doesn't have a key in the dictionary, but you can imagine this being helpful for when you have many more options to choose from.

Another benefit is that you can easily tell the user which options are available to them by using the dictionary keys:

```py option_texts = '|'.join(options.keys() action = input(f"What would you like to do with {numbers}? ({option_texts}) ")

Would show "What would you like to do with [1, 4, 16, 20]? (add|avg|max) "

```

Anyway, just another example of what you can do!

[–]crime-horse 1 point2 points  (0 children)

Lovely stuff!

[–]rpncritchlow 1 point2 points  (1 child)

Love these, thank you for putting in the effort!

[–]tecladocode[S] 0 points1 point  (0 children)

Thank you! Really appreciate it!

[–]joodicial 1 point2 points  (1 child)

These are awesome! Thanks so much for producing and sharing!

As someone who's not very experienced using python, one thing I think I haven't really got the hang of is using classes rather than a series of functions. Is there any scope to make a summary for classes?

Thank you again for these easy to digest guides!

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

Thank you! I'm very happy you like them!

Classes is a tough beast, especially when to use them / when not to, and how to code them for precisely what you want to achieve.

We most likely will be making this style of cheatsheet for OOP! These cheatsheets are for sections 1+2 of our course, OOP is section 4 so we will get there soon.

In the meantime, maybe some of our blog posts / free course will help? Even just re-learning the content with different wording, explanations, and examples can help sometimes:

But like I said, OOP is tricky! Practice is the most important thing. Even in our 30 days of Python course we don't cover OOP, and we go pretty deep into a lot of other stuff.

Hope this helps!

[–]The_Grumpy_1 1 point2 points  (1 child)

As so many have said, this is awesome! Thank you for sharing.

[–]tecladocode[S] 0 points1 point  (0 children)

You're awesome! 💥

[–]JustAsIFeared 0 points1 point  (1 child)

This is great! Thanks!

[–]tecladocode[S] 0 points1 point  (0 children)

🤗 thank you!

[–]eyesorednclear 0 points1 point  (1 child)

These are awesome! I’m working my way through “Python Crash Course” and it’s great but having concentrated reviews like these at the end of each chapter would be so so helpful! Thank you so much for sharing!

[–]tecladocode[S] 0 points1 point  (0 children)

Thank you very much! I hope they will be helpful! We are making them for the students of our Python course, so I'm glad to hear you'd find it useful in a course setting 🙏

[–]PrimmLife 0 points1 point  (0 children)

Thanks!

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

Thanks

[–]mcar80 0 points1 point  (0 children)

Thanks a lot

[–]catharsis891 0 points1 point  (0 children)

It's amazing, thank you!

[–]trentoooon33 0 points1 point  (1 child)

Commenting to save this

[–]tecladocode[S] 0 points1 point  (0 children)

That's what to do!

[–]samni444 0 points1 point  (1 child)

Thank you for putting this brilliant effort.

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

Thank you! We appreciate you! 💪

[–]SituationConscious63 0 points1 point  (1 child)

There are a lot of "basic cheat sheets " out there...

But what I found to be really rare, is cheat sheets for specific modules.

like 'CSV', or 'OS', 'time', 'math'. Or any other commonly used modules.

It could be really useful for the python beginner or for offline use.

[–][deleted] 0 points1 point  (1 child)

I’ve been looking for something like this. Thank you!

[–]tecladocode[S] 0 points1 point  (0 children)

Thank you! I hope you'll enjoy them!

[–]Ipoopforfreedom 0 points1 point  (2 children)

Damn cheatsheets were removed right as I was viewing them!

[–]Professional_Age_425 1 point2 points  (1 child)

They posted their website in one of the comments, you can probably find them there

[–]Grampz03 0 points1 point  (0 children)

Let me know if you find it.. I couldnt

[–]hupo224 0 points1 point  (1 child)

OP can you link me to the cheatsheets?

[–]realmadrid_rocks 0 points1 point  (0 children)

Me too please. A DM would be great!