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

What was the outcome of the First Crusade?
What is the main idea of the passage "save the pygmy hog"
Which of the following factors contributed to the increased unrest in West Africa during the Atlantic slave trade? A;Many Portuguese traders resettled and colo
What is 6.73 × 103 written in standard form? A. 673 B. 6,730 C. 67,300 D. 673,000
Dinosaurs are an extinct species which roamed the earth millions of years before the reign of mankind. Formal Informal Semi-Formal
there are 5 flag stamps and 11flower stamps in nichole 's stamp collection. what is the ratio of flower stamps to flag stamps?
According to the short story “Rolls for the Czar,” at what time of year does the story take place?
In “Song of Myself” by Walt Whitman, who asks Whitman what a blade of grass is?
The product of a number and 3 plus 1 is 19
Which of the following statements about remittances is false? A. Remittances are monies sent from a worker's host country to his or her home country. B. Remitta