jacobtolleyinc
jacobtolleyinc jacobtolleyinc
  • 18-10-2020
  • Computers and Technology
contestada

Need help with coding.
I'm trying to input a list that uses int(input("Element: ")) and it's causing an error. Anything to help with this?

Respuesta :

Cytokine
Cytokine Cytokine
  • 18-10-2020

You could try something likes this.

lst = []

n = int(input("Number of elements: ))

for i in range(0, n):

element = int(input("Element: "))

lst.append(element)

Answer Link

Otras preguntas

Ben is reading a story that shares the perspectives of many characters. Which type of narrator does this describe? first person limited third person third perso
E struggle for independence against a colonial power turned violent in which African colony? a. Kenya c. Nigeria b. Gold Coast (Ghana) d. Biafra
In which sentence is the underlined verb in the passive voice? a. The rock concert [is being given] just one more time. b. The rock group [will have given] the
which of the following best describes the united states when herbert hoover took office
Valerie has 10 Cds In her music case. Seven of the ds are pop music Cds.What is this amount written as a decimal?
Which is an example of scientific evidence that can be used to critique a new scientific argument?
a package was determined to have a mass of 5.7kilograms. what's the force of gravity acting on the package on earth?(a)37.93N(b)1.72N(c)13.44N(d)55.86N
metric unit for the mass of a television
"When government takes away citizens right to bear arms, it becomes citizens duty to take away governments right to govern".?
What Is 3/8+1/8-1/3+1/4