Sets
In sets we always keep unique values . Set cannot keep repeat values.
Sets are represented by curly brackets{}.
------------------------------------------------------------------------------------------------
#Syntax
sets={1,2,3}
------------------------------------------------------------------------------------------------
Here i can explain the set with example.
sets1={1,2,3,'study language'}
print(sets1)
------------------------------------------------------------------------------------------------
#output:
output of set example |
0 Comments