Python Part 10 - Sets

preview_player
Показать описание
By Andy Brown

Sets in Python provide a beautifully elegant way to remove duplicates from a list and to compare the contents of two lists, as this tutorial hopefully will prove to you!

Chapters
00:00 Topic list
01:10 What sets are and how to use them
02:04 Venn diagrams and set theory
04:14 Creating sets
06:23 Set operations
09:36 Example 1 - removing duplicates
14:28 Example 2 - counting letters/words
20:36 Example 3 - comparing lists

If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can join this channel to get access to perks:

Рекомендации по теме
Комментарии
Автор

Really nice demonstrations of the key features of Python in relation to 'Sets'. Also, thanks for the quick
reminders of definitions of the key statistics terms.

JHatLpool
Автор

Quick tip ... if you are following along and want the path to where YOU stored a file, store it in the same folder as the rest of your VSC files so you can see it, then right click file and 'copy path' (shortcut shift+alt+c). Will save you having to get it through explorer.

andrewt
Автор

WiseOwl Team - you killed it with the stripping quotation from punctuation. although you didn's explain the maketrans method, but that was very helpful. I decided to be a member to support you guys b/c I know exactly the amount of efforts and time you invest to explain these intricate subjects.
Q? = would the Egg membership get me access to new uploads (for instance - can I have access to Classes if I become Egg member or I need to be a chicken (you know what I mean 🙂)

THANK YOU!!

abderrahimagermoune
Автор

Looking forward to more videos. This channel will rock not now but within 6 month when everyone watch this video to learn pytho

Teaseweb
Автор

Thanks Andy. Love the cat :)) Thumbs up!!

wayneedmondson
Автор

Great video thanks!

Let's say I want to get rid of the weird character that appears in front of Arsenal. How would I go about it? I have spotted the same issue, working with the files from previous videos

SzSzilard
Автор

Great video! I just think there's a tiny mistake made in the unique letter counting. 21 characters <> 21 letters. I think it's 19 letters, as 'a' and 'A' are counted twice and a single space ' ' is also not a letter.

kukeleku