tubeshowcase●1,194,391 videosβ™‘ My collection 0
← Learn to Code

Learn to Code06:59

Python sets 🍴

Bro Code β†—

From the creator

Python sets tutorial explained #python #sets #set #set = collection which is unordered, unindexed. No duplicate values utensils = {"fork","spoon","knife"} dishes = {"bowl","plate","cup","knife"} utensils.add("napkin") utensils.remove("fork") utensils.clear() dishes.update(utensils) dinner_table = utensils.union(dishes) print(dishes.difference(utensils)) print(utensils.intersection(dishes)) for x in utensils: print(x) –––––––––––––––––––––––––––––– Up In My Jam (All Of A Sudden) by - Kubbi https://soundcloud.com/kubbi Creative Commons β€” Attribution-ShareAlike 3.0 Unportedβ€” CC BY-SA 3.0 Free Download / Stream: http://bit.ly/2JnDfCE Music promoted by Audio Library https://youtu.be/tDexBj46oNI ––––––––––––––––––––––––––––––

Published 2020-11-30 Β· Watch on YouTube β†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code