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

A que huesos está unido el biceps
20 POINTS!!!How does littering contribute to pollution? How does littering affect the homeless? GOOOOD responses please!! :)
What is the chemical name for a compound with the formula ba3n2?
Tracy deposited $59 into a bank account that earned 3.5% simple interest each year. If no money was deposited into or withdrawn from the account, how much mone
poem about wat happen to lulu1..what excuse does the mother give as an answer to the persona question
Gottfredson and hirschi trace the root cause of poor self-control to
. What is the first step to establish unresponsiveness of an athlete?
Transport of glucose enters a liver cell through a protein Chanel
What is the adjustment to income or income after certain deductions also known as?
Why do bare feet feel colder on a tile floor than on a rug? Carpet prevents cold from reaching your feet. Tile conducts the heat away from your feet. Ti