5 Tips For Writing Better Code in Python

preview_player
Показать описание
Here are five tips for writing better and more consistent code in Python.

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Learning Python made simple
00:05 Intro
00:13 PEP
02:08 Readability
03:47 Linters
06:15 Built-ins
09:30 Docs
11:47 Outro
Рекомендации по теме
Комментарии
Автор

PEP's are proposals to change the python language. There are multiple PEP's, some of which were approved, others were rejected. The syntax stuff you mentioned in the first point is PEP8, a specific PEP covering Python's style guide. Other PEP's exist, covering features and other aspects completely unrelated with the style guide, syntax, etc.

gabrieldpasa
Автор

Thank you for these videos! Been getting better at coding with Python for a while. A bonus tip when writing code is to time yourself and see how long it takes to create something. Then, try to challenge yourself to complete a project more quickly. Timing yourself forces you to write better code in a shorter amount of time.

thrillvilled
Автор

How do you turn off auto-complete in pyCharm?

ShouryaRajput-zl
Автор

The PEP rules also suggest four space indentations and snake case, so it's not all good.

jsn
Автор

Thanks for the tips, they'll come in handy for the IOPCC. And you're right, C is an easier language. :)

anon_y_mousse
Автор

But how do I use linters in VS Code? I installed an extension and I also pip installed pycodestyle. But my code editor still doesn't catch extra whitespaces in print (like you showed @ 5:55)

NeroNich
Автор

what theme do you use? i want to use it it's reaallly cool

aashsyed
Автор

Is there a builtin index function which does not raise an exception when the value is not in the list and return a default value instead of? Like the get function for dicts. Tx

brainforest
Автор

Please put members first video soon😢😢😢

aruns
join shbcf.ru