Sets in Python || Python Tutorial || Learn Python Programming

Sets are a key way to store data in Python. In this tutorial, we show you how to create sets, how to add and remove elements from a set, and how to take the union and intersection of two sets. We will talk about lists, dictionaries and tuples in separate videos.

To learn Python, you can watch our playlist from the beginning:

We recommend:
Python Cookbook, Third edition from O’Reilly

The Mythical Man Month – Essays on Software Engineering & Project Management

Shop Amazon Used Textbooks – Save up to 90%

Subscribe to Socratica:

To support more videos from Socratica, visit
Socratica Patreon

Socratica Paypal

We also accept Bitcoin! :)
Our address is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Python instructor: Ulka Simone Mohanty
Written & Produced by Michael Harrison
FX by Andriy Kostyuk


CgiScript says:

What a good presentation i liked it !!

The Diary of Music says:

I absolutely love these videos!

Ahmed Eid says:

I like when they vids are to the point.

Asher Neumann says:

Hi, i’m quite confused with something. Objects in a set always need to be immutable , then why does the set in example 2 contain a list which is a mutable object?
example2 = set([28, True, 2.71828, “Helium”])
Why does this work?

Arean a says:

clicking in the “Head”! it is very good indeed.

Jerferson de Matos says:

For those who are not native It’s a little dificult to catch up with the speed of her speaking

Justin Robertson says:

These are great videos. Thanks!

Achin Gupta says:


Alexander Køpke says:

Awesome video on sets in python! Thanks!

dingolovethrob says:

Very Useful And Informative. Thank you….. (oh, and great humour too, the style is excellent and I can imagine it might lure in many young minds who will find the series both fun and very useful).

My Gmail says:

Hi ..could you please make some videos that how can we use python for automate stuff ?

Gabe Payne says:

The lack of views on these videos is absolutely criminal.

Ashish Sahu says:

Except the good thing No-duplicates, If set doesn’t preserve any order, why would anyone want to use it over list or tuple.

Shortcut says:

Started at video 1 and i subscribed instant. This is what i needed. short to the point video’s. basically spoonfeeding me bit by bit. Already i’m starting to see the immense power of this programming language, i have no previous coding experience, only HTML, CSS and a bit of CISCO CCNA.

This is by far the best method to get started if you do not have much or none experience at all. learning coding is hard and can be frightening at times. the humour really helps relax and focus better. i can’t get enough of this and plan to watch out the whole playlist in a binge.

Video of motivation UCG Karol Piotr Skalski says:

Very informational, thank you for creating it :)

Justin Chan says:

2 in primes,
6 in odds,

Jiayuan Sun says:

I need to watch this video in VR

Anthony Myers says:

Just stunning tutorials. Thank you Socratica.

Eternal Mist says:

Wowzers, That was AMAZING! clear and straight to the point. Great job to all involved in producing these! MOAR!!!!!

Fr. Richard Hill says:

Great lesson. I like the combining of why it’s important to use the functions and objects the way Python set them up. Helps me to understand how I will use it in the future and hopefully remember the differences in sets, tuples, list, and dictionaries.

sukul handa says:

too scary

John Smith says:

Upvote for thorium!

Swapnil Jain says:

What is exact difference between list, tuple, set, dictionary?

Jake Ambrose says:

great videos ill contribute soon and set up regular contributions

Callum says:

This is like Dune 2000 mission brief lol

tony das says:

The best tutorial series I came across.

Abang Jalan2 says:


Mark Cuevas says:

Very well explained and documented. Thank you!

Nelson Mandela says:

Great video never imagined tutorials could be done this way, thanks.

Erick Cardozo says:

>>> amazing_videos in Socrastica

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours