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

What is the difference between preterite and imperfect and the past progressive and present progressive?
What is 36 percent as a decimal?
What is a major city in Alaska that starts with F
Water on each side of a divide flows in...
What is a major city in Alaska that starts with F
Which statement illustrates the distributive property? Please help
How do you think the world was created?
Water on each side of a divide flows in...
What is the difference between preterite and imperfect and the past progressive and present progressive?
Pyrenees mountains border Spain and this European country starts with F