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

Why is physics the most basic science?
round 8.293 to the place named hundredths
an apple orchard sells apples in bags of 10 the orchid sold a total of 2430 apples one day how many bags of apples was this
Which of these professionals most directly uses geometry? a. criminal lawyer b. language interpreter c. opera singer d. medical imaging specialist
An alpha particle, which is a helium nucleus, has a mass of 6.64 x 10-27 kg. It is traveling horizontally at 42.3 km/s when it enters a uniform, vertical 1.60
graph the function f(x)=(x+1)(x-2)
What is 0.675 in its simplest form?
is 7.031 greater than 7.03
Which is generated by movements of tectonic plates? a. seismic waves b. ocean currents c. volcanoes d. earth's magnetic field
Starting in the mid-1800s, hoards of people traveled to the West out of desire to.