1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
katen-ka-za [31]
3 years ago
6

The top 3 most popular male names of 2017 are Oliver, Declan, and Henry according to babynames. Write a program that modifies th

e 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.
Engineering
1 answer:
Flura [38]3 years ago
7 0

Answer:

The code is given below in Python with appropriate comments

Explanation:

# convert list to set

male_names = set(['Oliver','Declan','Henry'])

# get remove and add name from user

remove_name = input("Enter remove name: ")

add_name = input("Enter add name: ")

# remove name from set

male_names.remove(remove_name)

# add new name ij set

male_names.add(add_name)

# sort the set

a = sorted(male_names)

# print the set

print(a)

You might be interested in
Plz solve the problem
julsineya [31]
I attached a photo that explains and gives the answer to your questions. Had to add a border because the whole picture didn’t fit.

6 0
3 years ago
Tech A says that water soaked brake shoes can be a cause of brake fade. Tech B says that disc brakes dissipate heat faster than
alina1380 [7]

Explanation:

perturbateur ( le temps, le lieu, les personnages[description], la victime, l'enqueteur )

les peripeties

le denouement

5 0
2 years ago
The arrival rate at a parking lot is 6 veh.min. Vehicles start arriving at 6:00PM and when the queue reaches 36 vehicles, servic
seraphim [82]

Answer:

Departure rate = 7.65 vehicle/min

Explanation:

See the attached file for the calculation.

5 0
3 years ago
1. Which of these is NOT a common type of Camber/Caster adjuster?
Anna35 [415]

Answer: I'm pretty sure Slots is the Answer

8 0
3 years ago
Read 2 more answers
How can you safely lift and support a vehicle
algol [13]

Answer:

Place the jack under the part of the vehicle that it should contact when raised. If you're using jack stands, place them near the jack. If you place your jack incorrectly, you can injure your car. To find the proper place to position the jack for your particular vehicle, check your owner's manual.

7 0
3 years ago
Read 2 more answers
Other questions:
  • In , the industries with the most complaints to the Better Business Bureau were banks, cable and satellite television companies,
    13·1 answer
  • If x < 5 and x >c, give a value of c such that there
    9·1 answer
  • A non-linear analog force sensor outputs the following voltages for different forces.
    7·1 answer
  • .........................................
    11·1 answer
  • Three-dimensional measuring references all of these EXCEPT:
    15·1 answer
  • A 132mm diameter solid circular section​
    5·1 answer
  • Pls hurry
    6·1 answer
  • Which of the eight diagnostic steps for locating an engine performance problem is performed first?
    10·1 answer
  • The Micro:bit is considered a what?
    14·1 answer
  • Thermal energy measured by?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!