Answered by AI, Verified by Human Experts
In this exercise we have to use the knowledge of thepython languageto write thecode, so we have to:The code is in the attached photo.So to make it easier thecodecan be found at:male_names = {'oliver', 'Declan', 'Henry'}name_to_remove = input("Enter name to remove: ")name_to_add = input("Enter name to add: ")try:male_names.remove(name_to_remove)male_names.add(name_to_add)except:print("Name that you are trying to remove does not exist")print("List of Names: ")print(male_names)See more aboutpythonatbrainly.com/question/26104476...