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 costs and risks were involved in going on pilgrimages
what is the GCF of 22,88,10,50?
Which of the Spanish phrases are spelled correctly. Which of the following sentences is correct? Estoy en una prisa. Tengo prisa. Tengo una prisa. Which of the
lee wong receive an annual salary of 65,000 today his boss inform him that he will be getting 3,000 raise the percent increase round to the nearest tenth
rewrite the sum 60+90 as the product of the GCF of the two numbers and a sum.
The constitution is based on the concept of
a bakery can make 175 pasteries a day. the bakery has been sold out for 3 days in a row. Determine if an estimate or exact amount is needed. then determine h
A car drives 215 km east and then 45 km north. What is the magnitude of the car’s displacement? Round your answer to the nearest whole number.
how did the french end up in texas
Doug has a bad back although he never complains about it