peepsSmurf
peepsSmurf peepsSmurf
  • 24-10-2020
  • Computers and Technology
contestada

what is the output? there are no answer options and I'm completely lost.

>>>answer = "five times"

>>>answer[2:7] ​

Respuesta :

Cytokine
Cytokine Cytokine
  • 24-10-2020

The string answer = "five times"

All strings start at index 0 and end at the length of the string minus 1

So, if we count appropriately, index 2 is v and index 7 is m

answer[2:7] goes from v to m including v but not m, therefore,

answer[2:7] = "ve ti"

Answer Link

Otras preguntas

Contesta la pregunta que oyes sobre la foto. Son dos jóvenes de diez años que viven en Puerto Rico
18=b/3+3 what's the solution
A swimming pool had 2.5 million liters of water in it. Some water evaporated, and then the pool only had 2 million liters of water in it.
Use the polynomial 2x6−6x3−5x7+7x−11x2+35 to answer the question. What is the leading coefficient of this polynomial?
Five times a number is the same as 30 more than 8 times the number. Find the number. If "n" is the number. Which equation could be used to solve for the number
Write Six million seven hundred thousand, twenty in standard form
Why were last pass that denied it slaves many rights in the English colonies
What were the political and economic impacts due to the Salem witch trials?
Which of the following points is a solution to the system of linear inequalities? A. (–7, –1) B. (–1, –7) C. (3, 5) D. (0, 3)
find two consecutive odd numbers such that the sum of the larger number and twice the smaller number is 27 less then four times the smaller number.