SET:-

  • Set object can be created by using Curly Bracket { } are calling set function.
  • Set does not support index .
  • Set object are using the platform mathematical set operation like Union,Intersection,Difference&Symmetric difference operation.
Eg1:-
         x={10,20,30,40,50,60,10}
         print(x)

         print(type(x))
Output:
             {40, 10, 50, 20, 60, 30}
              <class 'set'>
Eg2:-
         y=set()
         print(y)
         print(type(y))
Output:
             set()
             <class 'set'>