DEV Community

Discussion on: Python Cheatsheet 🔥

Collapse
 
rafaelbo profile image
RafaelBo

Very valuable. Thanks for your work!
Just one input from my side:
I usually try to avoid double-under functions:
Under Basic Usage of dictionaries, I'd prefer:
print("apple" in prices)
over
print(prices._ _ contains _ _("apple"))

But maybe that's just personal preference.
Otherwise great work!