Votefy
Votefy Votefy
  • 02-06-2021
  • Computers and Technology
contestada

what would be the result of running these two lines of code


Ski

Surf

Jog

Hike

what would be the result of running these two lines of code Ski Surf Jog Hike class=

Respuesta :

fichoh
fichoh fichoh
  • 07-06-2021

Answer:

Jog

Explanation:

The variable options is a list containing 5 string values

options = ["ski", "surf", "jog", "bike", "hike"]

Indexing in python starts from 0 ; hence the index values of the list values are :

0 - ski

1 - surf

2 - jog

3 - bike

4 - hike

The statement ;

print(options[2]) means print the string at index 2 in the list named options

The string at index 2 is jog ;

Hence, the string jog is printed.

Answer Link

Otras preguntas

Which of the following sequences is most likely to be cut by a restriction enzyme? The answer is AATATT TTATAA I need an explanation wh
Savanna's truck takes two hours longer to travel 300 miles then Tony's car takes to travel 280 miles Tony's car travels 20 mph faster than savanna's truck find
how to write an article writing composition ​
2/5 times 8/15 didided by 1/4
Why were wolves introduced to Coronation Island?
Why is the answer to this secant?
What was Montesquieu view on slavery
in what ways did the US economy improve because of WWII?
A Good Man is Hard to Find Which of the following best identifies a theme of the text? A) A person’s morality cannot be determined by their appearance. B)When p
which of the following fractions are equivalent? 3/4 and 6/7. 2/3 and 12/13. 1/9 and 4/12. 1/6 and 3/18