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

Entre los años 1000 a 300 a.C., los sacerdotes arios o brahamanes se impusieron sobre la población india. De este modo hicieron creer al pueblo de raza negra su
what is 2.4 time 3.48
how do nucleus and riboson work together
please answer this quick I need help​
SN1 reactions of the type, Nu- + RL → Nu–R + L-, are favoured:a. when tertiary substrates are used. b. by using a high concentration of the nucleophile. c. when
Which of the following would a chemist be most likely to study? A. what happens when a moving car comes to a stop B. what happens when iron rusts in the presenc
If a skateboarder is moving at 4 meters per second then changes its velocity to 10 meters per second over the course of 10 seconds what is the skateboards accel
What is the answer to the equation x+x/7+1/11(x+x/7)=60
Is 10x-3=5(2x-4) +17 one solution , many solutions or no solutions
carl wrote 3 numbers between 0.63 and 0.64 what number could carl have written?