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

Which answer choice does not contain any errors in punctuation or capitalization? a. Seeming quite pleased, Terrance said "I made this card myself." b. Is tha
Identify the following as plot or theme. A man sacrifices his job at the CIA to save a dolphin that is trained to be a live torpedo.
Find the area of a triangle with a base length of 6 units and a height of 7 units. 10 units 13 units 14 units 21 units
Which element has 32 protons in its nucleus?
how do I add decomposers into this food web
Justify the reasons why businesses use team dynamic theories to understand team performance
In the sit-and-reach flexibility assessment, a man with average flexibility should be able to __________. a. barely reach his toes b. reach 3 inches beyond hi
Which of the following strategies is part of a pre-reading plan? prepare postpone part plan
In a quadrilateral, three of the angles are obtuse. Which of the following could not be the angle measure of the fourth angle? 20° 40° 60° 90°
What are the steps to solve an equation with a variable?