Question: CHALLENGE ACTIVITY 2 . 1 6 . 1 : Creating and modifying sets. The top three most popular male names of 2 0 1 7

CHALLENGE
ACTIVITY
2.16.1: Creating and modifying sets.
The top three most popular male names of 2017 are Oliver, Declan, and Henry, according to
babynames.com.
Write a program that modifies the male_names set by removing a name and adding a different name.
Sample output with inputs: 'Oliver' 'Atlas'
{'Atlas', 'Declan', 'Henry' }
NOTE: Because sets are unordered, the order in which the names in male_names appear may differ from above.
Learn how our autograder works
male_names 'Oliver', 'Declan', 'Henry' }
name_to remove = input ()
name_to_add = input ()
1.' Your solution goes here
print(male_names)
 CHALLENGE ACTIVITY 2.16.1: Creating and modifying sets. The top three most

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!