Skip to main content

set Function in Python

 



        #-- If you have items with name name than set will print only one time


s = set()
# s.add(1)
a =s.union({1,2,3,4,4,4})
print(a)




Comments