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

M= 4 (7,7) what is the equation Ax+by=c
Carmen Martinez, number 42.” I took a deep breath as my name rumbled through the loudspeaker. I was so nervous! With each step from the on-deck circle to the ba
why were the people in jamestown running out of food?
Which of the following is an example of a labor resource? a. money b. water c. talent d. electricity
what are the great lakes names
What is the real portion of the complex number z= -3 4i? –4 –3 3 4
how many times larger is 3.19 x [tex] 10^{8} [/tex] than 8.23x10 to the fifth power?? plz show work
whitchurch is smaller 0.3 or 75% or4/5
Which equation has solution x = -3? a. 2x - 7 = -1 b. 3x 8 = 1 c. 1 2 x 8 = 10 d. 1 2 (2x - 6) = -6?
which do you think made the most significant contribution to the ancient world? Ancient Greece and Rome were perhaps two of the most significant civilizations i