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

Sparta had a(n) ___________. a democracy b monarchy c oligarchy d tyranny
Explain why a change from 20 to 40 is a 100% increase, but a change from 40 to 20 is a 50% decrease. Increasing 20 to 40 is the same as increasing 20 by a . So,
The SI base units have the dimensions of: Group of answer choices mass, weight, time length, density, time mass, length, time weight, length, time mass, le
On sledding hills, there are often rules against having many people sled down at the same time together. Why is that? (1 point) The mass of that many people wou
what parts of the brain are effected by the encephalitis? answer in 3 sentences
Which characteristics are common to all angiosperms? Check all that apply. Fruits spores flowers nonvascular tissue roots stems.
Easy: look at the picture in this question and please answer it!
What is the value of y? Write your answer
A chemist needs 80 milliliters of a 37% solution but has only 19% and 43% solutions available. Find how many milliliters of each that should be mixed to get the
need a little help on this question im kinda stuck on it