There are 4 Collection data types in Python
List | Tuple | Set | Dictionary
List [] ordered | indexed | changeable | duplicates
Tuple () ordered | indexed | unchangeable | duplicates
Set {} unordered | unindexed | no duplicates
Dictionary {K:V} unordered | changeable | indexed | no duplicates
Code - Sets
my_set = {“Chalk“, “Duster“, “Board“}
print(my_set)
for x in my_set:
print(x)
print(“Chalk“ in my_set)
(“Pen“)
print(my_set)
1 view
4108
1537
1 month ago 05:27:42 1
Python — полный курс для начинающих. Этот навык изменит твою жизнь.
1 month ago 00:00:00 1
Free Live Data Science, AI/ML(including Gen AI & LLMs) course - Session 2
1 month ago 03:02:33 2
Natural Language Processing with spaCy & Python - Course for Beginners
1 month ago 00:14:45 1
Как установить Stable Diffusion 3.5 Large и Turbo на компьютер? Пошаговая инструкция для Windows.
1 month ago 12:00:00 3
Python Full Course for free 🐍
2 months ago 00:18:02 1
5 Online Businesses That Are Virtually Fail Proof ($1,200+ / Month)
2 months ago 00:01:00 1
Задача из Собеседования в Google и Amazon #java #собеседование #google