Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string is 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.

Answers

Answer 1
Answer:

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.

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

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


Related Questions

A certain solar energy collector produces a maximum temperature of 100°C. The energy is used in a cyclic heat engine that operates in a 10°C environment. What is the maximum thermal efficiency? What is it if the collector is redesigned to focus the incoming light to produce a maximum temperature of 300°C?
Which of the following results from the fact that skip signals refracted from the ionosphere are elliptically polarized?A. Digital modes are unusableB. Either vertically or horizontally polarized antennas may be used for transmission or receptionC. FM voice is unusableD. Both the transmitting and receiving antennas must be of the same polarization
The sports car has a weight of 4500-lb and a center of gravity at G. If it starts from rest it causes the rear wheels to slip as it accelerates. Determine how long it takes for it to reach a speed of 10 ft/s. Also, what are the normal reactions at each of the four wheels on the road? The coefficients of static and kinetic friction at the road are us=0.5 and uk=0.3, respectively. Neglect the mass of the wheels.
A hydraulic jump is induced in an 80 ft wide channel. The water depths on either side of the jump are 1 ft and 10 ft. Please calculate: a) The velocity of the faster moving flow. b) The flow rate (discharge). c) The Froude number of the sub-critical flow. d) The flow energy dissipated in the hydraulic jump (expressed as percentage of the energy prior to the jump). e) The critical depth.
At its current short-run level of production, a firm's average variable costs equal $20 per unit, and its average fixed costs equal $30 per unit. Its total costs at this production level equal $2,500. A. What is the firm's current output level? B. What are its total variable costs at this output level? C. What are its total fixed costs?

If the total energy change of an system during a process is 15.5 kJ, its change in kinetic energy is -3.5 kJ, and its potential energy is unchanged, calculate its change in specificinternal energy if its mass is 5.4 kg. Report your answer in kJ/kg to one decimal place.

Answers

Answer:

The change in specific internal energy is 3.5 kj.

Explanation:

Step1

Given:

Total change in energy is 15.5 kj.

Change in kinetic energy is –3.5 kj.

Change in potential energy is 0 kj.

Mass is 5.4 kg.

Step2

Calculation:

Change in internal energy is calculated as follows:

\bigtriangleup E=\bigtriangleup KE+\bigtriangleup PE+\bigtriangleup U15.5=-3.5+0+\bigtriangleup U

\bigtriangleup U=19 kj.

Step3

Specific internal energy is calculated as follows:

\bigtriangleup u=(\bigtriangleup U)/(m)

\bigtriangleup u=(19)/(5.4)

\bigtriangleup u=3.5 kj/kg.

Thus, the change in specific internal energy is 3.5 kj/kg.

If you are pouring a large concrete slab and wish to avoid random cracks caused by shrinkage, you would likely provideA. expansion joints
B. isolation joints
C. control joints
D. construction joints

Answers

If you are pouring a large concrete slab and wish to avoid random cracks caused by shrinkage, you would likely provide Control joints. The correct answer would be C.

Control joints are used to prevent random cracks from forming in large concrete slabs caused by shrinkage. These joints are placed at strategic locations in the slab to allow for the concrete to expand and contract without cracking. Expansion joints, on the other hand, are used to separate concrete from other structures or materials, and isolation joints are used to separate different sections of concrete.

Construction joints are used to connect two different pours of concrete. Therefore, the best option for preventing random cracks caused by shrinkage would be to use control joints.

Learn more about Control joints:

brainly.com/question/1992029

#SPJ11

Will mark brainliest if correctWhen a tractor is driving on a road, it must have a SMV sign prominently displayed.

True
False

Answers

Answer: true

Explanation:

A 1-m3 tank containing air at 10°C and 350 kPa is connected through a valve to another tank containing 3 kg of air at 35°C and 150 kPa. Now the valve is opened, and the entire system is allowed to reach thermal equilibrium with the surroundings, which are at 19.5°C. Determine the volume of the second tank and the final equilibrium pressure of air. The gas constant of air is R = 0.287 kPa·m3/kg·K.

Answers

Answer:

V₂=1.76 m³

P=222.03 KPa

Explanation:

Given that

For tank 1

V₁=1 m³

T₁= 10°C = 283 K

P₁=350 KPa

For tank 2

m₂=3 kg

T₂=35°C = 308 K

P₂=150 KPa

We know that for air

P V = m R T

P=pressure ,V= Volume,R= gas constant ,T= temperature ,m =mass

for tank 2

P₂ V₂ = m₂ R T₂

By putting the values

150 x V₂ = 3 x 0.287 x 308

V₂=1.76 m³

Final mass = m₁+m₂

m =m₁+m₂

The final volume V= V₂+V₁

V= 1.76 + 1 m³

V= 2.76 m³

The final temperature T= 19.5°C

T= 292.5 K

m=(PV)/(RT)

m_1=(P_1V_1)/(RT_1)

m_1=(350* 1)/(0.287* 283)

m_1=4.3\ kg

m =m₁+m₂

m =4.3 + 3 = 7.3 kg

Now at final state

P V = m R T

P x 2.76 = 7.3 x 0.287 x 292.5

P=222.03 KPa

On what single factor does the efficiency of the Otto cycle depend?

Answers

Answer:

Compression ratio(r)

Explanation:

Otto cycle:

  Otto cycle is an ideal cycle for all working petrol engine.It have four processes in which two are constant volume process and other two are reversible adiabatic or we can say that isentropic processes.All petrol engine works on Otto cycle.

The efficiency of Otto cycle given as follows

\eta =1-(1)/(r^(\gamma-1))

Where r is the compression ratio and γ is heat capacity ratio.

So from above we can say that the efficiency of Otto cycle depends onl;y on compression ratio (r).

What is refrigeration capacity and what is meant by a "ton" of refrigeration?

Answers

Answer:

1 ton refrigeration =3.517 kJ/s = 3.517 kW

Explanation:

Refrigeration capacity is defined at the  measure of the effective cooling capacity of a refrigerator which is  expressed in Btu per hour or in tons.

1 ton capacity is a unit of air conditioning and refrigeration which  measure the capacity of air conditioning and refrigeration unit.

One ton  is equal to removal of 3025kcal heat per hour

1 ton refrigeration = 200 Btu/min = 3.517 kJ/s = 3.517 kW = 4.713 HP