- Now I think I'm finally done…sorting through my friends.…I finalized my set, and I'm ready to start…inviting people.…(cellphone rings)…Oh!…Excuse me for a sec.…Hey Verne, what's up?…Oh you did?…Um, I'll call you back.…That was my friend Verne,…he heard a rumor that I'm planning a game night,…and wanted to know if he and Jim could join.…I'd love to invite them.…They are really good friends.…Here's the set of friends that I planned to invite.…Let's start by checking to see if Verne is already…in the set of friends to invite.…
And unfortunately no.…I must have taken him out of the set earlier.…Well, since Verne really wants to hang out,…I'll be a good friend and add him back…to the set of friends to invite.…But that raises a problem.…Now I have one to many people in my…set of friends to invite.…So I'm going to need to remove somebody.…- Hey, I was just chatting with Nestor online.…It turns out he's in Romania this week.…- Well I think it's safe to assume that Nestor…won't be making it for game night.…So now there's room for Verne.…
Author
Released
12/21/2015- 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
Duration
Views
-
Introduction
-
Welcome57s
-
Using the exercise files1m 10s
-
Installing Python 3 for Mac1m 56s
-
-
1. Functions
-
Cook with functions7m 16s
-
Code reuse4m 44s
-
Add new input parameters6m 12s
-
Local and global variables7m 58s
-
-
2. Objects
-
Clothing as objects7m 25s
-
Custom objects6m 3s
-
Naming objects4m 44s
-
Mutable and immutable data4m 32s
-
-
3. Class Inheritance
-
Inheriting classes7m 4s
-
Override inherited methods3m 59s
-
-
4. Modules and Packages
-
Select tools from modules6m 55s
-
Import tools from packages3m 42s
-
-
5. Lists and Tuples
-
Parking with lists7m 29s
-
Multidimensional lists6m 50s
-
Tuples4m 25s
-
-
6. Queues and Stacks
-
7. Sets
-
Create and combine sets3m 40s
-
Sort sets4m 45s
-
-
8. Dictionaries
-
Dictionaries3m 45s
-
Add items to dictionaries4m 43s
-
Reverse lookup issues4m 22s
-
-
9. Conditional Execution
-
If/else-if chains5m 52s
-
Switch and case statements4m 31s
-
-
10. Loops
-
For loops5m 1s
-
While loops3m 41s
-
Break statements3m 37s
-
-
11. Error Handling
-
Error catching5m 39s
-
Validate external input6m 9s
-
Custom errors6m 49s
-
-
12. Polling and Event-Driven Programming
-
Polling for a condition6m 25s
-
Event driven programming7m 30s
-
-
Conclusion
-
Next steps26s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake 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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Add and remove items from sets