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

Solve the quadratic equation by completing the square. (Enter your answers as a comma-separated list.)x2 − 6x − 27 = 0
why the nile river no longer overflows its banks?
There are three kinds of levers. What makes them different from each other?
what does hijo mean in spanish?
Find the equation of the line that passes through the points (-800,200)and(-400,300).
Which heavenly bodies are involved in causing the earths tides?A.only the moon and earth.B.only the earth.C.the earth, moon, and sun.D.all the planets plus the
a 2 kg mass is held 4 m above the ground. what is the approximate potential energy due to gravity of the mass with respect to the ground?
-2(b+12)+6b is simplified to what?
Which European colonial power took control of Malaya and built the port at Singapore?
How did Jefferson contradict himself?