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

A word processing program would probably be used to:   A. maintain a shoe inventory.   B. create a contract to hire someone.   C. track T-shirt sales for a smal
The phrase "establish justice" in the Preamble can be linked to the Fifth Amendment guarantee of due process. How did the Constitution establish justice in the
who was our 3rd president
Help on math plzzzz....
Fill in the sign that completes the equation below 7,300=730 10
ANSWER THE FOLLOWING QUESTION AND MAKE SURE TO GIVE A FULL DESCRIPTION TO HOW YOU GOT YOUR ANSWER (EX. make sure to use blank rule in order to get blank answer)
By tracking your activities for one week, you will _____. Identify the opportunity cost in each of the following examples. Select the answer that best complet
Geometry help plz :)
Write a rule for the sequence. Then find the next three terms. 6, 8, 10, 12 A. Start with 6 and add 2 repeatedly; 20, 22, 24 B. Start with 2 and add 6 repeated
Can you answer this question for science?