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
yanalaym [24]
3 years ago
14

Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string i

s your own creative choice. It can be names, favorite foods, animals, anything. Just make it up yourself. Do not copy the string from another source. Turn the string into a list of words using split. Delete three words from the list, but delete each one using a different kind of Python operation. Sort the list. Add new words to the list (three or more) using three different kinds of Python operation. Turn the list of words back into a single string using join. Print the string.

Engineering
1 answer:
dybincka [34]3 years ago
4 0

Answer:

The code is attached.

Explanation:

I created a string s including 6 colors with spaces in between. Then I converted the string into a list x by using split() method. I used three different methods for removing elements from the list. These methods are remove(), pop() and del.

\\ Then I used methods append(), insert() and extend() for adding elements to the list.

\\ Finally I converted list into a string using join() and adding space in between the elements of the list.

You might be interested in
The basic barometer can be used to measure the height of a building. If the barometric readings at the top and at the bottom of
bixtya [17]

Answer:

h = 287.1 m

Explanation:

the density of mercury \rho =13570 kg/m3

the atmospheric pressure at the top of the building is

p_t = \rho gh  = 13570*908*0.73 = 97.08 kPa

the atmospheric pressure at bottom

p_b = \rho gh  = 13570*908*0.75 = 100.4 kPa

\frac{w_{air}}{A} =p_b -p_t

we have also

(\rho gh)_{air} = p_b - p_t

1.18*9.81*h = (100.4 -97.08)*10^3

h = 287.1 m

7 0
3 years ago
What is differentiation​
oksian1 [2.3K]

Answer:

the action or process of differentiating or distinguishing between two or more things or people.

7 0
2 years ago
Jodie bought some shirts for 6$ each marge brought some shirts for 8$ each
Alex_Xolod [135]

Answer:

you need more details but if you have to find the difference, its $2.00

Explanation:

8-6=2

3 0
3 years ago
Steep safety ramps are built beside mountain highway to enable vehichles with fedective brakes to stop safely. a truck enters a
Veronika [31]

Answer:

a. 6 seconds

b. 180 feet

Explanation:

Images attached to show working.

a. You have the position of the truck so you integrate twice. Use the formula and plug in the time t = 7 sec. Check out uniform acceleration. The time at which the truck's velocity is zero  is when it stops.

b. Determine the initial speed. Plug in the time calculated in the previous step. From this we can observe that the truck comes to a stop before the end of the ramp.

7 0
3 years ago
Compute the theoretical density of ZnS given that the Zn-S distance and bond angle are 0.234 nm and 109.5o, respectively. The at
andriy [413]

Answer: the theoretical density is 4.1109 g/cm³

Explanation:  

first the image of one set of ZnS bonding in the crystal structure, we calculate the value of angle θ

θ + ∅ + 90° = 180°

θ = 90° - ∅

θ = 90° - ( 109.5° / 2 )

θ = 35.25°

next we calculate the value of x from the geometry

given that;  distance angle d = 0.234

x = dsinθ

= 0.234 × sin35.25°)

= 0.135 nm = 0.135 × 10⁻⁷ cm

next we calculate the length of the unit cell

a = 4x

a = 4(0.135)

a = 0.54 nm = 0.54 × 10⁻⁷ cm

next we calculate number of formula units

n' = (no of corner atoms in unit ell × contribution of each corner atom in unit cell) + ( no of face center atom in a unit cell × contribution of each face center atom in a unit cell)

n' = 8 × 1/8) + ( 6 × 1/2)

= 1 + 3

= 4

next we calculate the theoretical density using  this equation

P = [n'∑(Ac + AA)] / [Vc.NA]

= [n'∑(Ac + AA)] / [(a)³NA]

where the ∑Ac is sum of atomic weights of all cations in the formula unit( 65.41 g/mol)

∑AA is the sum of weights of all anions in the formula unit( 32.06 g/mol)

Na is the Avogadro’s number( 6.023 × 10²³ units/mole)

so we substitute

P = [4( 65.41 + 32.06)] / [ ( 0.54 × 10⁻⁷ )³ × (6.023 × 10²³)]

= 389.88 / 94.84

= 4.1109 g/cm³

therefore the theoretical density is 4.1109 g/cm³

5 0
2 years ago
Other questions:
  • Which branch of engineering studies the physical behavior of metallic elements?
    8·2 answers
  • Rosalind franklin<br> What was she famous for
    14·1 answer
  • 29
    6·1 answer
  • A Barnes and Books is interested in purchasing a two-story building for a new
    5·1 answer
  • You are designing a geartrain with three spur gears: one input gear, one idler gear,and one output gear. The diametral pitch for
    13·1 answer
  • 4 points
    13·1 answer
  • Quản trị học là gì ? ý nghĩa của quản trị học với thực tế xã hội
    10·1 answer
  • The Environmental Protection Agency (EPA) has standards and regulations that says that the lead level in soil cannot exceed the
    13·1 answer
  • How are sedimentary - gravity flows different from fluid - gravity flows
    6·1 answer
  • A pipe fitter would fabricate which one of the following systems?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!