9. Write a python program to print out the names "Howard" has been removed from the first name list as same answer in the following output.
The output is:
name_list_1= "Mark", "Nicole", "Jason", "Howard"
Answer: The names after removing Howard: {'Jason', 'Mark', 'Nicole'}
Answer:
name_list_1 = set(["Mark", "Nicole", "Jason", "Howard"]) name_list_1.remove("Howard") print("The names after removing Howard: ", name_list_1)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)