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

An amusement park ride raises people high into the air, suspends them for a moment, and then drops them at a rate of free-fall acceleration. Is a person in this
Solve 2x2 + 3x = −8.
Which lines from act I, scene I, of Richard III foreshadow the events to come in the play?
The point slope form of the equation of the line that passes through (-4, -3) and (12, 1) is y-1- 1-12). What is the standard form of the equation for this line
If a neutral atom of chlorine has 17 electrons and 18 neutrons, how many protons does it have?
________ plate boundaries have the largest magnitude earthquakes
What is the term for group leadership that emphasizes the completion of tasks?
Qu’est-ce qu’Hélène a fair pour s’amuser en vacancies?
3 to the power of n = 81. Pls explain
Write and simply the polynomial represented by the model?(1 point) 3x to the second power+5x-5x to the second power -4x+5-2