Check out example codes for "remove an element from a set". It will help you in understanding the concepts better.

Code Example 1

list.remove(element)

Code Example 2

list1 = {1,2,3,4}
list1.remove(4)
print(list)
# {1,2,3}

Learn ReactJs, React Native from akashmittal.com