• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 4 pages
Summary

Summary set and strings

Document preview thumbnail
Preview 1 out of 4 pages

Summary of 4 pages for the course Data Science & online sales at Data Science & online sales (set and strings)

Content preview

DTech point




Set and String

Python Data Types: Set and String
1. Set Data Type
Definition:
A Set is an unordered collection of unique and immutable elements. It is
mutable, which means elements can be added or removed.
Syntax:
my_set = {1, 2, 3}
Key Characteristics:
1. No duplicate elements.
2. Unordered (no indexing).
3. Mutable (can add or remove elements).
4. Elements must be immutable (like numbers, strings, tuples).


Set Creation:
set1 = {1, 2, 3}
set2 = set([4, 5, 6])
empty_set = set() # Not {}

Document information

Uploaded on
October 27, 2026
Number of pages
4
Written in
2026/2027
Type
Summary
£6.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
4
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions