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