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

What is 88/99 in its simplest form
Which expression represents y⁴ - 36 in simplest factored form? A. ( y² + 4)( y² - 9) B. ( y² + 4)( y - 3)( y + 3) C. ( y² + 6)( y² - 6) D. ( y⁴ - 36)( y +1)
Why is nonpoint source pollution potentially more harmful than point source pollution?a.Nonpoint source pollution disrupts the water cycle.b.Nonpoint source pol
what is th answer to y=2
Which group of organic compounds contains fatty acids? A. carbohydrates B. lipids C. nucleic acids D. proteins
Two strings of equal length are stretched out with equal tension. The second string is four times as massive as the first string. If a wave travels down the fir
Persuasive exposition writing:Endangered Animals Need Our Protection.
Order this starting from the smallest:15.249         15.3         15.05          15.009         15.25
compare the economic system of Japan, Germany, France, and south Korea to the u.s. free enterprise system
What is 88/99 in its simplest form