7 simple tips for python beginners (Patreon)
Published:
2022-05-12 09:34:02
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
A bunch of very simple code snippets to write more elegant and understandable python code.
Timestamps:
0:00 - Intro
0:27 - match case
3:24 - ternary operator
5:44 - chain comparisons
7:15 - clamping values
11:10 - eval + exec
15:20 - dict.get()
17:14 - list flattening with sum()
Pastebin: https://pastebin.com/2gYZJXfQ
Files
Previews only