PTYTHON Set code example
Example 1: python set
set_example = {1, 2, 3, 4, 5, 5, 5}
print(set_example)
# OUTPUT
# {1, 2, 3, 4, 5} ----- Does not print repetitions
Example 2: set in python
A_Set = {1, 2, "hi", "test"}
for i in A_Set: #Loops through the set. You only get the value not the index
print(i) #Prints the current value