subject
Engineering, 21.02.2020 02:38 bbyggigi94041

Assume that sentence is a variable that has been associated with a string consisting of words separated by single space characters with a period at the end. For example: "This is a possible value of sentence." Write the statements needed so that the variable secondWord is associated with the second word of the value of sentence . So, if the value of sentence were "Broccoli is delicious." your code would associate secondWord with the value "is" . (python)
my answer was
secondWord = sentence. substr(sentence. find(" ") + 1)
secondWord = secondWord. substr(0, secondWord. find(" "))
but i am keep on getting error message saying
⇒ You almost certainly should be using: [ ]
⇒ We think you might want to consider using: :
⇒ Solutions with your approach don't usually use: , (comma)
please help i am so stuck

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
question
Engineering, 04.07.2019 18:20
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
You know the right answer?
Assume that sentence is a variable that has been associated with a string consisting of words separa...
Questions
question
History, 27.01.2020 22:31
Questions on the website: 13722362