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

PLEASE HELP!!!! 3(2x -5)= 1 And explain
helpppppp me plssss uh
SABER O CONOCER Yo no dónde está la cafetería de la escuela
Which of the following equations is equivalent to 4x -y=3`?
Will you prefer light bulbs that emit more light with low power consumption?​
WARM-UP: parimave. & Ferrona 1 Der (1-5. 3), (-1.0) (3-4). (1.2) Renge Function? 2 Domain {(0.8). (5. 3). (-4.3). 19. 2)} Range Function? 3 Domain: Range Fu
Adele swam the length of the pool in 32.56 seconds. Alexandria swam the length of the pool in 29.4 seconds. How many seconds faster was Alexandria’s time than A
What is the correct answer?! HELP FAST!
The city of New York was originally founded by the And was know as
Were the country’s efforts at compromising over slavery effective? Why or why not?