25 Program to create a set, add member(s) in a set and remove one item from set in Python

Program:

var_set = set([10,20,30])

print(var_set)

var_set.add(50)

print(var_set)

var_set.pop()

print(var_set)


Output:

Set create, add and remove in Python

Previous
Next Post »