creating empty set and append python 1

creating empty set and append python

myset = set()
myset.add('a')

Here is what the above code is Doing:
1. Create an empty set
2. Add the element ‘a’ to the set

Similar Posts