Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/set.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# data-structure called "SET"
"""
SET is an unordered and unindened collection of elements enclosed with {}

Duplicates are not allowed:
"""

# Example for SET

# Set can be written in curly braces{}
s1 = { 1, 'a', True, 2, "b", False}

s1.add("Hello")

s1

# This is the basic example to update set element