pinkeyfox23
pinkeyfox23 pinkeyfox23
  • 20-06-2021
  • Computers and Technology
contestada

>What is the output of the following code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]
print (list1[1] )

Respuesta :

codiepienagoya codiepienagoya
  • 25-06-2021

Answer:

Given code output is "786".

Explanation:

Code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]#defining a list list1 that holds value in parameter

print (list1[1] )#use a print method that prints list index value

In the given code a list "list1" is declared that holds value in it and in the next step a print method is declared that prints the first index value of the list.

Ver imagen codiepienagoya
Answer Link

Otras preguntas

a car rental agency charges 29$ per day to rent a car.  And 13.95 per day for a global positioning system (GPS) . Customers are charged for their full tank of g
The ratio of floor seats to balcony seats in a theater is 20:1. Does this theater have more floor seats or more balcony seats? How do you know?
360 kilometers is is 24% of how many kilometers
if ribosomes of a cell were destroyed, what effect would this most likey have on the cell
what is a property that describes how easily a substance undergoes chemical changes?
An advantage of electron microscopes compared to light microscopes is that electron microscopes
The presidential election of 1840 is often considered the first “modern” election because (A) the slavery issue was first raised in this campaign (B) there was
How to round this number 1,360,760,100 to the nearest thousand
is human height inherited or acquired?
What is the next three terms for 4,7/4,-1/2,-11/4,...