creating empty set and append python code example Example: creating empty set and append python myset = set() myset.add('a')