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

Condense the logarithm g log a + 2 log b
25 points please explain it to me add the answer and the work since I’m so confused on when to subtract missing lengths where and when
please help with that please​
click one underlined phrase on these pages that uses a metaphor to suggest that unity is a concept others will attack
A binomial distribution has p = 0.60 and n = 40. a. What are the mean and standard deviation for this​ distribution? b. What is the probability of exactly 27 ​s
The perimeter of and equilateral triangle is 60mm. What is the size of the other side?
PLs answer i need it now
which of the following correctly access the seventh element stored in foo, an array with 100 element​
Please answer please I need it today, if you show ur answer and solution then i'll make you the brainliest
which of the following inequalities is graphed on the coordinates plane ?