remove an element from a set

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

Also in C: