Join Barron Stone for an in-depth discussion in this video Create and combine sets, part of Programming Foundations: Real-World Examples.
- If you have a collection of different objects…that you want to store together,…and the order of those objects doesn't matter,…then they can be organized into a set.…A set is a data structure to store an unordered collection…of unique objects, meaning that no two objects in the set…are identical.…I think I'll invite some friends over tonight…for an epic evening of board games.…Now to figure out who to invite.…As a modern man, I keep track of all my friends…through social networks, but I keep them organized…into different groups.…
I have one group for my college buddies,…another group for my coworkers,…and also a group for my family friends.…Each of these three groups of friends represents a set,…which is an unordered collection of unique items,…in this case, my friends.…Representing them in a set is different from a list…because there is no ranking or order to the set.…I can't tell you who my number one friend is…because they are all equally good friends…within each set.…These three circles contain sets of my friends.…
- 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
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.