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
Problematic substances mechanical engeneering???
Sonja [21]

Answer:

The climate crisis. ...

Making water clean and accessible. ...

Providing enough food. ...

Personalised and relevant education. ...

Improving health care. ...

The refugee crisis. ...

Cyber security. ...

Enlisting the youth

6 0
2 years ago
If my friend have the corona what do I do
nordsb [41]
(E. Call the hospital to take them away
5 0
3 years ago
Read 2 more answers
Compare a series circuit powered by six 1.5-volt batteries to a series circuit powered by a single 9-volt battery. Make sure the
lana [24]

Answer:

Both series circuits provide a total voltage of 9 volts to the two bulbs connected in series and the voltage will be equally divided among two bulbs and they will have same brightness. Therefore, both circuits will have same characteristics.

Explanation:

We are asked to compare two series circuits having equal number of light bulbs.

1st circuit is powered by 6 batteries each having a voltage of 1.5V

2nd circuit is powered by a single battery having a voltage of 9V.

The six batteries in the 1st circuit can be connected together in series or in parallel.

When the batteries are connected in series (positive terminal of one battery connected to negative terminal of another battery) their voltage gets added which means

Voltage of pack = number of batteries*voltage of each battery

Voltage of pack = 6*1.5

Voltage of pack = 9 volts

But the current remains same in the series connection since there is only path for the current to flow.

On the other hand, when the batteries are connected in parallel, the voltage remains same but the current increases.

Circuit 1:

In this circuit, we have 6 batteries each of 1.5 volts connected in series to provide a voltage of 9 volts.

We have connected 2 bulbs in this series circuit.

The voltage will be equally divided between two bulbs if both bulbs are identical in construction.

So there will be 4.5 volts across each bulb and both bulbs will have same brightness.

Circuit 2:

In this circuit, we have 1 battery which provide a voltage of 9 volts.

We have connected 2 bulbs in this series circuit just like in circuit 1.

The voltage will be equally divided between two bulbs if both bulbs are identical in construction.

So there will be 4.5 volts across each bulb and both bulbs will have same brightness.

Conclusion:

Both series circuits provide a total voltage of 9 volts to the two bulbs connected in series and the voltage will be equally divided among two bulbs and they will have same brightness. Therefore, both circuits will have same characteristics.

3 0
3 years ago
Which best describes the body in terms of simple machines?
alex41 [277]

Answer:B

Explanation:

5 0
3 years ago
What must engineers keep in mind so that their solutions will be appropriate?
vekshin1

Answer:

Context

Explanation:

It is of great value for an engineer to keep the context of his/her experiment in mind.

7 0
2 years ago
Other questions:
  • A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
    6·2 answers
  • You are watching the weather forecast and the weatherman says that strong thunderstorms and possible tornadoes are likely to for
    15·1 answer
  • Write analgorithm and a C code to calculate the sum and average value of an array12elements.For example: Array_Temperaure=[10, 1
    6·1 answer
  • As a top-level executive at your own company, you are worried that your employees may steal confidential data too easily by down
    12·1 answer
  • Water is flowing in a metal pipe. The pipe OD (outside diameter) is 61 cm. The pipe length is 120 m. The pipe wall thickness is
    9·1 answer
  • The typical Canadian worker is able to produce 100 board feet (a unit of measure) of lumber or 1000 light bulbs per year. The wo
    12·1 answer
  • Which option identifies the type of engineering technician most likely to be involved in the following scenario?
    9·1 answer
  • Who does each person work for? Monica works for a power company, Travis works for a utilities company, and Maggie is self-employ
    15·2 answers
  • The team needs to choose a primary view for the part drawing. Three team members make suggestions:
    10·1 answer
  • The sum of forces on node 2 (upper-left) is ______.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!