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
An equal-tangent sag vertical curve (with a negative initial and a positive final grade) is designed for 55 mi/h. The PVI is at
Varvara68 [4.7K]

Answer:

The lowest point of the curve is at 239+42.5 ft where elevation is 124.16 ft.

Explanation:

Length of curve is given as

L=2(PVT-PVI)\\L=2(242+30-240+00)\\L=2(230)\\L=460 ft

G_2 is given as

G_2=\frac{E_{PVT}-E_{PVI}}{0.5L}\\G_2=\frac{127.5-122}{0.5*460}\\G_2=0.025=2.5 \%

The K value is given from the table 3.3 for 55 mi/hr is 115. So the value of A is given as

A=\frac{L}{K}\\A=\frac{460}{115}\\A=4

A is given as

-G_1=A-G_2\\-G_1=4.0-2.5\\-G_1=1.5\\G_1=-1.5\%

With initial grade, the elevation of PVC is

E_{PVC}=E_{PVI}+G_1(L/2)\\E_{PVC}=122+1.5%(460/2)\\E_{PVC}=125.45 ft\\

The station is given as

St_{PVC}=St_{PVI}-(L/2)\\St_{PVC}=24000-(230)\\St_{PVC}=237+70\\

Low point is given as

x=K \times |G_1|\\x=115 \times 1.5\\x=172.5 ft

The station of low point is given as

St_{low}=St_{PVC}-(x)\\St_{low}=23770+(172.5)\\St_{low}=239+42.5 ft\\

The elevation is given as

E_{low}=\frac{G_2-G_1}{2L} x^2+G_1x+E_{PVC}\\E_{low}=\frac{2.5-(-1.5)}{2*460} (1.72)^2+(-1.5)*(1.72)+125.45\\E_{low}=124.16 ft

So the lowest point of the curve is at 239+42.5 ft where elevation is 124.16 ft.

3 0
3 years ago
The end of a large tubular workpart is to be faced on a NC vertical boring mill. The part has an outside diameter of 38.0 in and
nata0808 [166]

Answer:

(a) the cutting time to complete the facing operation = 11.667mins

b) the cutting speeds and metal removal rates at the beginning= 12.89in³/min and end of the cut. = 8.143in³/min

Explanation:

check attached files below for answer.

5 0
3 years ago
Which of the following is NOT true about hydraulic valves? A. Directional control valves determine the path of a fluid in a give
Lelechka [254]

Answer: Option D is not true of hydraulic valves. A hydraulic valve is a device that can change the opening degree of liquid flow path

Explanation:

The pilot check valve allows flow of liquid in one direction and blocks flow in the opposite direction

5 0
3 years ago
Calculate the radius of gyration for a bar of rectangular cross section with thickness t and width w for bending in the directio
SVEN [57.7K]

Answer:

a)R= sqrt( wt³/12wt)

b)R=sqrt(tw³/12wt)

c)R= sqrt ( wt³/12xcos45xwt)

Explanation:

Thickness = t

Width = w

Length od diagonal =sqrt (t² +w²)

Area of raectangle = A= tW

Radius of gyration= r= sqrt( I/A)

a)

Moment of inertia in the direction of thickness I = w t³/12

R= sqrt( wt³/12wt)

b)

Moment of inertia in the direction of width I = t w³/12

R=sqrt(tw³/12wt)

c)

Moment of inertia in the direction of diagonal I= (w t³/12)cos 45=( wt³/12)x 1/sqrt (2)

R= sqrt ( wt³/12xcos45xwt)

4 0
3 years ago
Mrs. Pham has 8 apples. She wants to give 3/4 of the
Sergio039 [100]
The answer would be 32/3 or if you want the simplified version it’s 10 2/3.
6 0
2 years ago
Read 2 more answers
Other questions:
  • A liquid refrigerant (sg=1,2) is flowing at a weight flow rate of 20,9 N/h. Refrigerant flashes into a vapor and its specific we
    15·1 answer
  • A four-cylinder, four-stroke internal combustion engine has a bore of 3.7 in. and a stroke of 3.4 in. The clearance volume is 16
    14·1 answer
  • What is the difference between a single-model production line and a mixed-model production line?
    8·1 answer
  • Match the test to the property it measures.
    7·1 answer
  • Why are there few effective HCI standards?
    6·1 answer
  • What must engineers keep in mind so that their solutions will be appropriate?
    15·1 answer
  • Nitrogen (N2) enters an insulated compressor operating at steady state at 1 bar, 378C with a mass flow rate of 1000 kg/h and exi
    8·1 answer
  • Why is electricity considered a secondary source of energy
    6·1 answer
  • Airbags may deploy in the<br> of the passenger or<br> driver, or from the<br> of the vehicle.
    6·1 answer
  • What are the philological elements of interior design most like?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!