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]
2 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]2 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
5. A typical paper clip weighs 0.59 g and consists of BCC iron. Calculate (a) the number of
marta [7]

Answer:

(a) 3.185*10^{21} cells

(b) 6.37*10^{21} atoms

Explanation:

(a)

Volume, V of unit cell

V=(2.866*10^{-8})^{3}=2.354*10^{-23}

Number of unit cells, N

N=\frac {W_{mat}}{V\rho_{mat}} Where W_{mat} is weight of material and \rho_{mat} is density of material

N=\frac{0.59}{7.87*(2.354*10^{-23}}=3.185*10^{21} cells

(b)

Number of atoms in paper clip

This is a product of number of unit cells and number of atoms per cell

Since iron has 2 atoms per cell

Number of atoms of iron=3.185*10^{21} cells*2 atoms/cell=6.37*10^{21} atoms

8 0
3 years ago
You are using a Jupyter Notebook to explore data in a DataFrame named productDF. You want to write some inline SQL by using the
defon
You need to explain it more simple as everyone is clueless
7 0
2 years ago
You find an unnamed fluid in the lab we will call Fluid A. Fluid A has a specific gravity of 1.65 and a dynamic viscosity of 210
Naily [24]

Answer:

1.2727 stokes

Explanation:

specific gravity of fluid A = 1.65

Dynamic viscosity = 210 centipoise

<u>Calculate the kinematic viscosity of Fluid A </u>

First step : determine the density of fluid A

Pa = Pw * Specific gravity =  1000 * 1.65 = 1650 kg/m^3

next : convert dynamic viscosity to kg/m-s

210 centipoise = 0.21 kg/m-s

Kinetic viscosity of Fluid A = dynamic viscosity / density of fluid A

                                            = 0.21 / 1650 = 1.2727 * 10^-4 m^2/sec

Convert to stokes = 1.2727 stokes

4 0
2 years ago
Air enters a compressor operating at steady state at 1 bar, 290 K, with a mass flow rate of 0.1 kg/s and exits at 980 K, 10 bar.
stiv31 [10]

Answer:

7.615 kW

Explanation:

Solution in pen paper form in the attachment section

8 0
3 years ago
Determine the voltages at all nodes and the currents through all branches. Assume that the transistor B is 100,
iren [92.7K]

Answer:

The voltages of all nodes are, IE = 4.65 mA, IB =46.039μA,  IC=4.6039 mA, VB = 10v, VE =10.7, Vc =4.6039 v

Explanation:

Solution

Given that:

V+ = 20v

Re = 2kΩ

Rc = 1kΩ

Now we will amke use of the method KVL in the loop.

= - Ve + IE . Re + VEB + VB = 0

Thus

IE = V+ -VEB -VB/Re

Which gives us the following:

IE = 20-0.7 - 10/2k

= 9.3/2k

so, IE = 4.65 mA

IB = IE/β +1 = 4.65 m /101

Thus,

IB = 0.046039 mA

IB = 46.039μA

IC =βIB

Now,

IC = 100 * 0.046039

IC is 4.6039 mA

Now,

VB = 10v

VE = VB + VEB

= 10 +0.7 = 10.7 v

So,

Vc =Ic . Rc = 4.6039 * 1k

=4.6039 v

Finally, this is the table summary from calculations carried out.

Summary Table

Parameters          IE       IC           IB            VE       VB         Vc

Unit                     mA     mA          μA            V           V          V

Value                  4.65    4.6039   46.039    10.7      10     4.6039

4 0
2 years ago
Other questions:
  • Technician A says that you don’t need to use an exhaust extraction system when working on vehicles equipped with a catalytic con
    9·1 answer
  • Engineering is a broad category that includes a variety of occupations and attempts to solve problems using math and
    13·1 answer
  • Carbon dioxide flows at a rate of 1.5 ft3 /s from a 3-in. pipe in which the pressure and temperature are 20 psi (gage) and 120 °
    8·1 answer
  • When wasDisney Cruise Line founded
    5·1 answer
  • How many trains have been invented all around the world?
    14·1 answer
  • PLEASE ANSWER THIS DIAL CALIPER
    9·1 answer
  • What major financial flop led to the end of the Sega Dreamcast and ultimately caused Sega to stop making game consoles altogethe
    15·1 answer
  • Guess the output of this code: print( (3**2)//2)​
    13·1 answer
  • Would you ever date a transgender person??
    8·2 answers
  • Select the correct answer.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!