1. Write a python program to generate an empty set and non-empty set as non_empty_set which provided in the following
The output is:
non_empty_set = set(['Python', 'free', 'Exercises', 'Tutorials'])
Expected Answer:
The empty set: set()
The non empty set: {'Python', 'free', 'Exercises', 'Tutorials'}
Sample Answer(new empty set) :
empty_set = set() print("The empty set: ", empty_set )
Sample Answer(new non empty set) :
non_empty_set = set(['Python', 'free', 'Exercises', 'Tutorials']) print("The non empty set:", non_empty_set)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)