STOP Making These Python Mistakes

preview_player
Показать описание
Chances are you have made a mistake while programming, and if you code in Python then you know what a unique programming langauge it is! While it is great that Python is unique and has a lot of great features, that also means that there are many ways that you can make mistakes while programming, and may not even realize it! So in this video I am going to walk you through common mistakes and help you follow steps to correct them. I hope you enjoy!

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Python Mistakes
00:53 | Mistake #0 - ProgrammingExpert
01:11 | Mistake #1 - Name Shadowing
03:38 | Mistake #2 - Mutable Default Parameters
05:34 | Mistake #3 - Modifying While Iterating
08:05 | Mistake #4 - Name Clashing
09:27 | Mistake #5 - Naked Except
12:13 | Mistake #6 - Wrong Data Structure
16:11 | Mistake #7 - Global Variables

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
-Programming Mistakes
-Coding Mistakes
-Biggest Coding Mistakes
-Python Mistakes
-Biggest Python Mistakes

⭐️ Hashtags ⭐️
#TechWithTim #CodingMistakes #Python
Рекомендации по теме
Комментарии
Автор

Tim, as someone who has vision problems, I REALLY appreciate how you zoom the code in your IDE, so that it's easier to read! It's just ONE of the many reasons your channel is so successful! THANK YOU!

troyke
Автор

9:27 is also dangerous because bare except catches BaseException objects, so it will also catch KeyboardInterruptException. This can lead to a program that can only be stopped by killing the process.

kamilherbetko
Автор

In the past everything used to fly over my head in these kinds of videos but I’m proud that i can understand and comprehend why these errors can happen while coding and I’ve faced a few scenarios that are mentioned in the video. Great stuff

kiranreddy
Автор

Ty Tim. My wife's bf has been giving me more computer privledges lately and your content has really been helping me learn a new skill!

BaconBitsJuice
Автор

Thanks much for helping)) Keep it up✊✊✊

amirilifee
Автор

Yours is one of the best youtube channel about python. Topics covered are interesting and your explanation is crystal clear. Last, but not the least: I'm not an english native speaker, but I can understand what you says without any effort, your accent and pronunciation are very clear. Thank You

carmelomarasco
Автор

I joined this channel when it have just 250k subs. From that it had a growth of 948k till date. This is just Tim's hardwork n patience which led his success. Wishing all the very best for the future buddy :)
Well, thanx for this video too.

shreyanshughosh
Автор

Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.

akira_asahi
Автор

great video, learning many think about python again, thx

Lunolux
Автор

Very nice video. This is exactly the type of content that I need since I'm an intermediate-ish programmer and just want to keep getting better.

No benefit in going through basics over and over for people stuck at my level.

Thank you Tim!

sugumarprabhakaran
Автор

Hey Tim, good stuff as always. Thanks for the advise. May I know do you have any tutorials on Tkinter to build GUI? I love to learn from you.

mgtan
Автор

when modifying iterables (like deleting elements selectively for example), sometimes i’ll iterate through the list backwards, so that the length of the list after a delete (in the direction i’m iterating) doesn’t actually change.

Robnoxious
Автор

I believe you can create a tuple of exception errors - rather than writing a block for each of them, and then use e as you described to provide which one of them was caught. Useful if you don't want long code.

TheDuerden
Автор

Tim brother always on 🔥🔥.
while Everyday:
Quality content++;

indiraparajuli
Автор

I've been programming since 1984 (yes I'm a dinosaur) and progressed on the corporate ladder up to Senior Management but keep programming as a hobby over weekends. Started learning python 5 years ago and this is the first time I finally understood WHY there's a difference between lists and sets. A pay donation is coming your way after this comment. Keep on the good work.

chfalcao
Автор

i bought the programming expert course couple weeks ago and just finished it. i recommend it to for new programmers and experienced programmers new to python. you can find similar material on youtube for free but the site organization, the section quizzes/programming exercises and gamification really makes it worth it. there is also a section on Go programming language which I havent done but looks interesting.

jti
Автор

Another one, is using the print function instead of the logging function for debugging and general logging of information

Dbrano
Автор

Hey Tim, could you maybe make a video on Argparse and how to create Subparsers and how you could use them in the command line interface? We just had an assignment with Argparse and I am not quite sure if I actually understand what I am doing when working with Argparse. Thanks in advance!!

imaginecloudsxo
Автор

7:50 Instead of creating an aux array or something to store the new list while iterating, you can just iterate a slice of the list which will create a copy
for count, value in enumerate(list[:])

vicb
Автор

My rule of thumb on changing lists during iteration is to iterate the list from the end to the beginning.

aikimark