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
Am i eating ramon nooddles rn
Elden [556K]

Answer:

You are eating ramen

Explanation:

It is shrimp flavor, yee yee

3 0
3 years ago
Read 2 more answers
Looking back, I was sure that I was going to die that November afternoon. Tornado watches in Alabama are as common as eggs are f
yKpoI14uk [10]
The author uses forshawdow in this passage
4 0
3 years ago
Read 2 more answers
Water flows with a velocity of 3 m/s in a rectangular channel 3 m wide at a depth of 3 m. What is the change in depth and in wat
strojnjashka [21]

Answer: new depth will be 3.462m and the water elevation will be 0.462m.

The maximum contraction will be achieved in width 0<w<3

Explanation:detailed calculation and explanation is shown in the image below

8 0
3 years ago
A cannon fires a ball vertically upward from the Earth’s surface. Which one of the following statements concerning the net force
trasher [3.6K]

Answer:

a) The net force on the ball is instantaneously equal to zero newtons at the top of the flight path.

Explanation:

At an instantenous time at the top of the flight path, the upward force due to the Canon explosion on the ball is just equal to the weight of the ball, this will equate the net force on the ball to zero. At this point the velocity of the ball is zero before it decends down to earth under its own weight.

8 0
3 years ago
A heat recovery system​ (HRS) is used to conserve heat from the surroundings and supply it to the Mars Rover. The HRS fluid loop
blagie [28]

Answer:

0.304 L of Freon is needed

Explanation:

Q = mCT

Q is quantity of energy that must be removed = 47 BTU = 47×1055.06 = 49587.82 J

C is specific heat of Freon = 74 J/mol.K = 74 J/mol.K × 1 mol/120 g = 0.617 J/g.K

T is temperature in the area of Mars = 189 K

m = Q/CT = 49587.82/(0.617×189) = 452.23 g = 452.24/1000 = 0.45223 kg

Density of Freon = specific gravity of Freon × density of water = 1.49 × 1000 kg/m^3 = 1490 kg/m^3

Volume of Freon = mass/density = 0.45223/1490 = 0.000304 m^3 = 0.000304×1000 = 0.304 L

7 0
3 years ago
Other questions:
  • For ceramic-matrix composites, high interfacial strength is desirable. ( True , False )
    8·1 answer
  • If d=0.25m and D=0.40m. Assume headloss from the contraction to the end of the pipe can be found as hų = 0.9 (V is velocity in t
    8·1 answer
  • Which element refers to musically depicting the emotion in the words of a musical piece?
    14·1 answer
  • This just a question that I keep forgetting, are lightskin people black.??
    6·2 answers
  • The value of universal gas constant is same for all gases?<br> a) yes<br> b)No
    15·1 answer
  • List a minimum of four reasons why you might be rejected for a job offer.
    10·1 answer
  • Airplanes are the only way that people can take flight.<br> A. True<br> B. False
    14·2 answers
  • What is the name of the part of the expressway where cars can both enter and exit?
    15·1 answer
  • Can you help me with this task/homework.
    11·1 answer
  • How many and what type of<br> receptacles are connected to<br> this circuit?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!