Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Sets in Python (Summary)

Download

Sample Code (.zip)

744 bytes

Download

Course Slides (.pdf)

464.8 KB

Thomas on Feb. 6, 2020

Very enlightening, thank you.

rgusaas on March 21, 2020

I guess I would like a real world example of the use of sets in action. I imagine they could be useful in building sets for visualization purposes where one is attempting to illustrate items in common or not. James did a good job on explaining the mechanics of their use, but I am not getting any real world application to come to mind.

James Uejio RP Team on April 11, 2020

In my experience they are used mostly to check membership and to take advantage of unions and joins. They also are useful in interview questions. I can imagine they’d be useful for visualizing venn diagrams too.

Ben Nduwuba on July 9, 2020

Thanks James for the easy the follow course.

Become a Member to join the conversation.