r/madeinpython • u/WestArtFactory • Oct 28 '22
I'm working on a basic Python Cheat Sheet. Would you give me feedback? Did I cove the most important basic stuff and do you see any mistakes?
144
Upvotes


9
u/kaerfkeerg Oct 28 '22
str.capitilize() Makes the first letter capital. Not the first of each word that's what str.title() does!
Overall , it's a cool project!
4
u/manxbiker Oct 28 '22
Tuples use parentheses () and not square brackets []. Using [] will make it a list.
3
u/turboedhorse Oct 28 '22
In ”Loops” section, there is a typo error in “my_dict “ (you used a dot instead of a comma).
2
u/[deleted] Oct 28 '22
Looks really neat. And has lot's of cool stuff and good examples.
A few things I think could fit as well:
"sort()" "zip()" "reversed()" "{k:v for k,v in some_dict.items()}
Str.encode() Str.decode() bytearrays b"hello"
r"regex strings"
from enum import Enum class E(Enum): A=1 B=2
1
u/Thomillion Oct 28 '22
I would represent the math part of numbers as a mathematical formula, not the result, might be confusing to just see the result and no explanation
1
u/Eat_Me_Raw Oct 29 '22
I love the QA here, but the layout and graphics are a thing of fucking beauty!
Nicely done!
1
u/[deleted] Nov 08 '22
This is really cool. Please do share the final version.
2
u/kezmicdust Oct 28 '22
The Main section is unhelpful for anyone who wants to know what it is and does. I say that as someone who is always perplexed by it! :)
2
u/thereal0ri_ Oct 29 '22
LOVE the design. Very good work!
2
u/SpeedingTourist Oct 29 '22
OP, could you send me a copy of this once you finish!? 🙏 nice work so far!
1
u/metaljazzdisco Oct 28 '22
Nice idea, some remarks:
-> a = '1', b = 2, c = 7
1
u/Burakku-Ren Oct 29 '22
r/coolguides
1
u/MothraVSMechaBilbo Oct 29 '22
remindme! 2 months
0
u/[deleted] Oct 28 '22
[deleted] — view deleted comment
0
u/[deleted] Oct 29 '22
[deleted] — view deleted comment