Join Barron Stone for an in-depth discussion in this video Select tools from modules, part of Programming Fundamentals in the Real World.
- View Offline
- Exercise Files
- There's a common saying that a smart programmer…is a lazy programmer.…What that means is clever programmers don't waste time…rewriting routines that already exist.…There's no need to reinvent the wheel…if it's already been invented for you.…Almost all programming languages…come with a standard library of code…for accomplishing common programming tasks.…And you should learn how to use the existing libraries…because it'll save you a lot of time.…In Python, those libraries come in the form…of packages and modules which give you access…to a wide range of functions and classes…to use for different tasks.…
Other languages call them libraries or patches.…Built-in functions we might use to write our program…are organized within modules and packages…just like the tools in my garage.…One of my brake lights is out,…and in order to fix the problem,…I'm going to need the right tools for the job.…I keep different types of tools…organized into different toolboxes.…This toolbox holds my screwdrivers…while this one holds my wrenches.…
- Reusing functions
- Local vs. global variables
- Creating and naming custom objects
- Class inheritance
- Modules and packages
- Multidimensional lists and tuples
- Queues and stacks
- Creating and combining sets
- Storing data in dictionaries
- If/else and switch statements
- For vs. while loops
- Error handling
- Polling and event-driven programming
Skill Level Beginner
Foundations of Programming: Design Patternswith Elisabeth Robson2h 19m Intermediate
3. Class Inheritance
4. Modules and Packages
5. Lists and Tuples
6. Queues and Stacks
9. Conditional Execution
11. Error Handling
12. Polling and Event-Driven Programming
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.