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

Please help me on this
_______ from the mantle rises and flows out through a vent onto Earth's surface as _______. This molten material, sometimes along with ash, cinders, and rock, b
Is a box and whisker plot a cluster? Explain you answer.
You hear your supervisor tell another supervisor that a fire drill will take place later today. When the fire alarm sounds that afternoon, you should: A. Calmly
Did the truman administration violate the rights and freedoms of americans?
Which of the following is the best description of a chemical reaction? A. When molecules of a substance move slowly enough, they link together to form a cryst
How did the geography of the Greek peninsula help them defeat the Persians? A: Athenian soldiers were able to hide in the valleys. B: The Athenians develope
what is the angle measure of arc VT?
What is the mean absolute deviation of the data set? {12, 4, 30, 16, 18}
What is mandatory sentencing? a. required term of imprisonment for a crime c. a wide range of possible imprisonment terms b. a list of possible imprisonment a j