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

Which specific innovation in poetry by Emily Dickinson is most apparent in poetry written today?
why did the U.S play a major role in the middle east in the 21st century​
Each of the points $A, B, C, D, E,$ and $F$ in the figure below represents a different digit from 1 to 6. Each of the five lines shown passes through some of th
Please help with this I will give brainliest
The Valley High School printed 445 tickets for the school play in Spring. Three-fifth of tickets were sold out by January. How many tickets remain to be sold?
HELP ASAP PLEASE ! Questions are in the pic
Jerry and Elaine are talking at lunch. Jerry: "Did you have a good weekend?" Elaine: "Yeah, how about you?" Jerry: "It was pretty good except my neighbor kept d
Find the derivative of cos^4(5x^2)
Which of the following MOST accurately depicts the role of businesses?
Need help with homework