Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

PLEASE Stop Making These Python Coding Mistakes

Tech with Tim via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to identify and avoid six critical Python programming mistakes that commonly trip up developers in this 20-minute educational video. Discover how mutable default parameters can cause unexpected behavior and explore safer alternatives for function definitions. Understand why modifying lists or dictionaries while iterating over them leads to bugs and master proper techniques for safe iteration and modification. Examine the dangers of shadowing built-in functions and variables, learning how to avoid accidentally overwriting important Python functionality. Explore decimal precision issues in floating-point arithmetic and discover when to use the decimal module for accurate calculations. Master proper file handling techniques to prevent resource leaks and understand why closing files matters for application stability. Finally, delve into method implications and learn how different approaches to common operations can impact code behavior and performance, helping you write more robust and predictable Python code.

Syllabus

00:00 | Mutable Default Parameters
02:46 | Modifying While Iterating
07:00 | Shadowing Built-Ins
08:29 | Decimal Precision
10:36 | Not Closing Files
12:02 | Not Understanding Method Implications

Taught by

Tech With Tim

Reviews

Start your review of PLEASE Stop Making These Python Coding Mistakes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.