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 dinoflagellate is a microscopic organism that is very common in the ocean. It consists of a single cell and has a flagella that it uses to move. It has chromo
Why was the Battle of Kalinga important to Ashoka's story?
√2/k+√2=1/k-√2 leaving your answer in the form p+m√n​
Using the following cladogram, put the following organisms in order from most evolved to least evolved.
^^^^^^^^^^^^^^^^^^..!!!!!!
deuce the first equation of motion by mathematical method​
Which principal part of the verb is used in the following sentence? The referee rang the bell to end the game. past participle present participle present past
I NEED HELP WITH THIS AND I'LL GIVE YOU 30 POINTS SO THANK YOU!! How does the Wisconsin constitution organize its executive branch? How does the Wisconsin const
If a+6= 8 what does a=?
The “old man” says he does not have a name. He says, “Who I am is more important.” Who is he?