The top 3 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.

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter7: Working With The Bash Shell
Section: Chapter Questions
Problem 5DE
icon
Related questions
Question

The top 3 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.

344614.2153518.qx3zqy7
{ '0liver', 'Declan', 'Henry'}
1 male_names
2 name_to_remove = input()
3 name_to_add = input()
1 test
passed
4
Your solution goes here
All tests
passed
7 print (male_names)
Run
View your last submission v
Transcribed Image Text:344614.2153518.qx3zqy7 { '0liver', 'Declan', 'Henry'} 1 male_names 2 name_to_remove = input() 3 name_to_add = input() 1 test passed 4 Your solution goes here All tests passed 7 print (male_names) Run View your last submission v
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L