7 simple tips for python beginners
A bunch of very simple code snippets to write more elegant and understandable python code.
If you want to support me: https://www.patreon.com/clearcode
(You also get lots of perks)
Social stuff:
Twitter - https://twitter.com/clear_coder
Discord - https://discord.com/invite/a5C6pYw2w5
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
Видео 7 simple tips for python beginners канала Clear Code
If you want to support me: https://www.patreon.com/clearcode
(You also get lots of perks)
Social stuff:
Twitter - https://twitter.com/clear_coder
Discord - https://discord.com/invite/a5C6pYw2w5
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
Видео 7 simple tips for python beginners канала Clear Code
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Pygame/Python tutorial: Creating Zelda-style heartsUnderstanding framerate independence and deltatimeUnderstanding decorators [Python tutorial]Creating a Pokémon inspired RPG in Python & PygameCameras in PygameMaster Python by making 5 games [the new ultimate introduction to pygame]Learning Pygame by making Pong part 3 - Improving the collision mechanics and adding soundThe complete guide to PythonThe ultimate introduction to modern GUIs in Python [ with tkinter ]Saving and loading in pygame with jsonUnderstanding Pygame masksAn introduction to programming in After EffectsThe ultimate introduction to PySimpleGUI [ Creating apps in Python ]Creating a Mario Maker style game in PythonCreating a Stardew Valley inspired game in PythonThe ultimate introduction to Godot 4Creating an animated button in PygameSimulating physics in PythonCreating an amazing 2D platformer in Python [ SNES inspired ]Python / Pygame Tutorial: Animations with spritesCreating particle effects in pygame