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
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 19:10
Estimate the change in specific internal energy au and specific enthalpy h from inlet to outlet for ethylene glycol (a liquid) flowing through each of the following devices: (a) a heat exchanger where the glycol temperature increases from 20 °c to 80 °c; (b) a pump operating at about 25 °c and increasing the glycol pressure from 100 kpa to 8 mpa.
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
Mathematics, 18.10.2020 09:01
question
Mathematics, 18.10.2020 09:01
question
Mathematics, 18.10.2020 09:01
question
Mathematics, 18.10.2020 09:01
question
English, 18.10.2020 09:01
Questions on the website: 13722363