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
1. Looking at the case study provided under the Companion Material section, what is the main problem that is addressed in this c
Fiesta28 [93]

Incomplete question. However, I provided information that could assist you in identifying the main problem or issue addressed in any case study.

Explanation:

First, note that a case study is simply a learning aid that allows one to learn from a real-life scenario.

To determine the main problems of a case study one needs to:

  • Read the case as many times as possible to become familiar with the message been expressed. For example,<em> by highlighting or underlining the most important facts </em>it can help you to discover the main problem or issue.
  • Check for any facts provided in the case study, by so doing you can identify the most important problems.

Thus, by taking these few steps you may be able to determine the main problem in that case study.

6 0
3 years ago
Why do you suppose a value of 5 is used? Do you think other values might work?
Shtirlitz [24]

Answer:

YES

Explanation:

values other than five will work

3 0
2 years ago
What are the characteristic features of stress corrosion cracks?
Oduvanchick [21]

Answer and Explanation:

The crack formation growth that takes place in an environment corrosive.

Stress corrosion cracks can be defined as the spontaneous failures of the metal alloy as a result of the combined action of corrosion and high tensile stress.

Some of the characteristic features of stress corrosion cracks are:

  • These occur at high temperatures.
  • Occurrence of failures in metals mechanically.
  • Occurrence of sudden and unexpected failures under tensile stress.
  • The rate of work hardening of the metal alloy is high.
  • Time
  • An environment that is specific for stress corrosion cracking.
5 0
3 years ago
Which one of the following is a list of devices from least efficient to most efficient
Sergeu [11.5K]

Answer:

(A)-Light-Bulb, Automobile Engine, Power Plant, Electric Motor

Explanation:

To get the least efficient to the most efficient the chart below explains how to the get it

Incandescent light bulb-5%

Florescent light bulb-20%

Electric motor-90%

Power plant-35%

Automobile engine-25%

Home oil furnace-80%

4 0
3 years ago
An inductor has a 50.0-Ω reactance when connected to a 60.0-Hz source. The inductor is removed and then connected to a 45.0-Hz s
nignag [31]

Given:

X_{L} = 50.0 \ohm

frequency, f = 60.0 Hz

frequency, f' = 45.0 Hz

V_rms} = 85.0 V

Solution:

To calculate max current in inductor, I_{L(max):

At f = 60.0 Hz

X_{L} = 2\pi fL

50.0 = 2\pi\times 60.0\times L

L = 0.1326 H

Now, reactance X_{L} at f' = 45.0 Hz:

X'_{L} = 2\pi f'L

X'_{L} = 2\pi\times 45.0\times 0.13263 = 37.5\ohm

Now, I_{L(max) is given by:

I_{L(max) = \sqrt {\frac{2V_{rms}}{X'_{L}}}

I_{L(max) = \sqrt {\frac{2\times 85.0}{37.5}} = 2.13 A

Therefore,  max current in the inductor, I_{L(max) = 2.13 A

7 0
3 years ago
Other questions:
  • 5) Two concentric spheres of diameter D1= 70 cm and D2= 120 cm are separated by an air space and have surface temperatures of T1
    13·1 answer
  • Which of the following is an example of a reliable source?
    10·1 answer
  • Given the circuit at the right in which the following values are used: R1 = 20 kΩ, R2 = 12 kΩ, C = 10 µ F, and ε = 25 V. You clo
    11·1 answer
  • Write a statement that increases numPeople by 5. Ex: If numPeople is initially 10, the output is: There are 15 people.
    11·1 answer
  • What is the lowest Temperature in degrees C?, In degrees K? in degrees F? in degrees R
    5·1 answer
  • The average human heart Beats 1.15 times 10 to the power of 5 per day. There are 3.65 times 10 to the power of 2 days in one yea
    14·1 answer
  • Assume, X Company Limited (XCL) is one of the leading 4th generation Life Insurance
    9·2 answers
  • Find all the words, Figure out my puzzle!
    14·2 answers
  • 1)
    13·1 answer
  • Identify the prefixes used in the International System of
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!