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 08:10
Which of the following is an easy way to remember the modified β€œx” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:20
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
question
Engineering, 04.07.2019 19:20
Determine (a) the maximum thermal efficiency of reversible power cycles operating between a hot reservoir at 1000Β°c and a cold reservoir at 200Β°c and (b) the maximum cops for reversible refrigeration and heat pump cycies, respectively, between 28Β°c and 14Β°c.
Answers: 1
You know the right answer?
Assume that sentence is a variable that has been associated with a string consisting of words separa...
Questions
question
Computers and Technology, 29.10.2020 16:10
Questions on the website: 13722362