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

PLEASE HELP NEED IT VERY SOON PUTTING 20 POINTS DOWN FOR THIS Dialect plays and important role in The Adventures of Huckleberry Finn. It can speak volumes about
are there any positive effects of littering?
What Two numbers add to -2 and multiply to -99
NEED ANSWERS ASAP you have a recipe that indicated to use 7 parts of sugar for every 4 parts of milk. You use 28 cups of sugar. How many milk do you need?
If 3sinA+4cosA=5 then find the value of A
Find the area of this question plz help I will mark brainiest and give pints
Complete the following sentences with the informal commands of the indicated verbs. Please help!!!!!! I’m being timed
What idea about Cook is demonstrated by lines 46 through 53? A his impressive experience with the collier Endeavour B the necessity of sending him to North Amer
What is one thing we can do to change the human interactions that negatively impact the watershed?
Please help me and if you don't know the answer pls don't answer