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

john wants to magnify the image of a fire ant and a crab spider so they appear the same length how many times their actual sizes fire ant 4 crab spider 5 he nee
what Amendment guaranteed the equal protection of the laws to all American citizens
751 round to the nearest ten
The United States is made up primarily of the descendants of immigrants. a. True b. False 2. Undocumented residents face the danger of being caught and deported
esitmate the difference of 46.78-18.55
how do you estimate 640 3
what is 259809 rounded to nearest ten thousand
In the 1930s, Germany first began to expand aggressively by...?
Express each rate as a unit rate. 720 miles traveled on 60 gallons of gasoline=
What factors contributed to the United States becoming a world leader? A.) the US winning the war & having a strong economy B.) the allies winning the war