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

Venus is about 10^8 kilometers from the Sun. Saturn is about 10^9 kilometers from the Sun. About how many times farther from the Sun is Saturn than Venus? 10^
What did Mr.Dickerson think the colonists should do
Which of the following best defines the two quantities that are measured to find the call rate of a phone company? The quantity of price measured in dollars de
Saviour of jews during wwii are known as?
I need help with number 4 please help
Any proposed solution of a rational equation that causes a denominator to equal​ _______ is rejected.
What is the value of x? A. 68° B. 62° C. 112° D. 124
How do people react when they are able to freely communicate with one another?
Suppose a card is drawn from a deck of 52 playing cards. what is the probability of drawing a 4 or an ace?
the some of two consecutive even integers is 170. find the two integers.