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

The time of a town 30⁰W is 8.50am. What time will it be at Chedo Town 15⁰E?​
Would you rather have a cup of ice cream that hold last a volume of 21.21 inches or a cone that has a radius of 1.5 inches and height of 3 inches?
can anybody correct me on this right away if you got any time? click/tap in here for the image​
PLEASE HELP ! what is the grand total ?
What is the present worth equivalent using 5.0% interest of a future amount of 8,000 at the end of period 7?
write about your digital world please can u help me​
A sandwich shop is ordering apples and grapes to make chicken salad.Apples cost $2.19 per pound and grapes cost $2.60 per pound. If they ordered a total of 20 p
Fill in the Blank 6:15=8:_
Parker plans to buy boxes of tissues at $12 each and bowls at $4 each for his restaurant. 1)Write an algebraic expression to find the total cost of the tools if
Find the zeros of the function f(x)=x2+2x-3