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

In the years immediately following the Civil War, the South _____. a.refused to meet the requirements for rejoining the Union b.became a stronghold of the Repub
There are 12 boys and 15 girls in your class four new students, 3 boys and 1 girl, join your class compare the ratio of to girls before and after the new studen
Find the product of 543 and 36. A. 579 B. 15.08 C. 507 D. 19,548
Paula is given a litre bottle of water during her fitness assessment at the gym she drinks 375millitres of the water how much is left in ml
How to you can you get the right answer for this -3(x-1)+9=15
What does dependency reversal mean?
How were the pharaohs of Egypt able to build huge monuments and temples that took decades to complete? They used slaves for workers and their wealth from plunde
Which food would be a poor nutritional choice to make from its food group?
How many minutes is 21/80
CAN ANYBODY WRITE A CINQUAIN AND DIAMANTE POEM ABOUT TO KILL A MOCKINGBIRD. ANY HELP APRRECIATED!