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

Good afternoon to you too, Angela formal o informal?
Identify the volume of the composite figure. HELP PLEASE!!
What is the mean absolute deviation for 2,9, 1, 7, 8, 9
How did the American colonies act when they found out about the Quebec act?
Can someone help me please
on january 1st jennifer puts 1000 in a savings account that earns 4% interest. the inflation rate for the year is 2% on december 31st will jennifer's purchasing
Need some help plz!!
The initial site of both mechanical and chemical digestion is the
what advantages did sweat glands and less body hair provide in our ancestors environment?
Can someone make a factfile poster (pref. PowerPoint) about Tsunamis thank you