Mar-02-2022, 01:37 PM
hey I realized late that there is more than one way to make the string to the new inputs
Try this
male_names = { 'Oliver', 'Declan', 'Henry' }
name_to_remove = input()
name_to_add = input()
male_names.remove(name_to_remove)
male_names.add(name_to_add)
print(male_names)
Try this
male_names = { 'Oliver', 'Declan', 'Henry' }
name_to_remove = input()
name_to_add = input()
male_names.remove(name_to_remove)
male_names.add(name_to_add)
print(male_names)