Useful Trick For Clean Python Code #python #programming #code

preview_player
Показать описание
Useful trick for cleaner code in Python. #python #programming #code

▶ Become job-ready with Python:

▶ Follow me on Instagram:
Комментарии
Автор

Oh dang, this is really useful for handling file errors....

S_sword
Автор

PEP 758 – Allow except and except* expressions without parentheses coming soon to 3.14

quintrankid
Автор

I knew about this and very glad you made it 👍🏻

Sinke_
Автор

Optimizing exceptions that come from dynamic types. Python is sooo beginner friendly.

InspektorDreyfus
Автор

one other thing is to use !r instead of repr()

print(f'Bad input: {e!r}')

Rsparing
Автор

Where can one find a list of the errors, EG TypeError?

acecabezon
Автор

> be me.

> program in Java and C# most of the time.

> try to learn C++.

> spot wild python video in the wild.

> watch a lot of random fun facts videos about it, even tho I haven't used it ever and it's not a priority to learn it atm.

Why am I like this? Who cares, Python go brrrr.

fakeAratPrime
Автор

Probably this is nothing new and cool, a very basic error handling concept!

Holasticlogger
welcome to shbcf.ru