scrimba
Python 101 in Bangla
21. Sets - Exercise
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

21. Sets - Exercise
AboutCommentsNotes
21. Sets - Exercise
Expand for more info
index.py
run
preview
console
#Sets - Exercise

#1. Check if ‘Azam’ and ‘Fahim’ exist in friends
#2. combine or add the two sets
#3. Find names that are in both sets
#4. find names that are only in classmates
#5. Make a new list of the uncommon names from the two given lists. (names that only appear in one list and not the other and vice versa)
#6. Create a new dailySports list without duplicates

classmates = {'Tushar','Sabbir','Shaon','Sami','Afzal','Razu','Asif','Mithu'}
friends = {'Tushar','Sabbir','Shaon','Azam','Fahim'}
dailySports = ['Cricket','Football','Chess','Table Tennis','Cricket','Football','Ludo']

Console
/index.html
-4:07