11 Tips And Tricks To Write Better Python Code

11 Tips And Tricks To Write Better Python Code

Patrick Loeber

4 года назад

608,402 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Patrick Loeber
Patrick Loeber - 07.07.2020 11:53

I hope you find these tips helpful! Let me know if you have any other Python tips that improve your code :)

Ответить
Navin Kumar
Navin Kumar - 12.09.2023 21:19

Wonderful. Thank you!

Ответить
david T
david T - 30.08.2023 11:23

Thanks man! Nice video!!

Ответить
ETgaming
ETgaming - 22.08.2023 02:55

If you aren't speeding up your videos during your scripting then you are a REALLY FAST typer, like holy crap. IDK how you can type those lists in under a second, that is crazy to me.

Ответить
Oskar W
Oskar W - 08.08.2023 00:23

thank u my german friend

Ответить
Manker00
Manker00 - 22.07.2023 19:16

I don't quite understand why f strings are so praised. I would argue that the second print statement is both easier to read and write.
print(f"Hello {name}")
print("Hello", name)

Ответить
Bob Bilderson
Bob Bilderson - 26.06.2023 16:57

I think a lot of times I'd like my code to crash if I'm looking for an item that doesn't exist. .get() is situational and should not be recommended by default imo.

Ответить
munibabu BODAGALA
munibabu BODAGALA - 01.06.2023 10:31

Your explanation is very fast, slow down

Ответить
eranzaksh
eranzaksh - 02.05.2023 14:51

Thank you! Isn't enumerate slower then range(len())?

Ответить
NebularNerd
NebularNerd - 20.02.2023 02:42

Some interesting tips, I'm just going through a reformat of a new script and this should help tidy and speed some operations.

Ответить
IRezzet
IRezzet - 19.02.2023 13:54

Very very good !

Ответить
Calvin DiBartolo
Calvin DiBartolo - 14.01.2023 05:16

dict.setdefault is exactly what I needed! thank you so much!

Ответить
Luis Eduardo Garcia Linares
Luis Eduardo Garcia Linares - 02.01.2023 01:14

Nice tips! Thankyou so much!

Ответить
Amitabh Suman
Amitabh Suman - 28.12.2022 05:21

Really useful tricks! Thanks for sharing.

Ответить
N A
N A - 04.12.2022 07:17

nice

Ответить
castlecoders ltd
castlecoders ltd - 25.11.2022 14:17

Very useful, thanks ☺

Ответить
Octobot
Octobot - 15.11.2022 17:56

Thanks for the tips, always great to listen to fellow Python devs!

Ответить
Mykyta 123
Mykyta 123 - 14.11.2022 02:53

such a great content. Thank you

Ответить
Quartdsi
Quartdsi - 01.11.2022 14:45

What idle do you use i.e what is used in the vedio ??

Ответить
Amit dhoka
Amit dhoka - 25.10.2022 12:29

Can anyone tell me what is that VSC theme ?

Ответить