set:
To add item to a set:
s.add(x)
To check whether item is in a set:
x in s #return True if set s contains item x
To remove item from a set:
s.remove(x)
This blog intends to document all computer science problems I encountered and my solutions/comments to them.
No comments:
Post a Comment