remove an element from a set
snippet in c

remove element form set in python

user1285

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

remove an element from a set

user2086

list.remove(element)