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

Answer the question in the photo keep your response simple and follow all directions please and thank you!
in 2010, haiti was hit by a devastating earthquake, which registered at 7.0
What does it mean to integrate a function in calculus?.
In your own words, how can we check that two polygons are congruent?
Which expression is the best estimate of 1.25 + (-2.69)?
two segments are divided proportionally. If the ratio of the two parts of the first segment is 3:5, what is the length of the longer part of the second segment
What are the smallest and largest neurons in the human brain?.
Please help it’s urgent I need to finish the lesson
please solve the question​
I don't know this. Can someone please help me. I am in 7th grade.