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

The first political parties in the United States were established in the 1790's largely because of political differences between-- A) John Adams and Benjamin Fr
In aristotle's system of classification, animals were classified on the basis of their size and structure. please select the best answer from the choices provid
If a double-stranded dna molecule contains 30 percent t, it must contain _______ percent g.
Round 21.25 to the nearest whole number
PLEASE PLEASE PLEASE HELP!! Can someone please help me with both of these problems ? I'll seriously appreciate it, and thank you so so so much in advance!! DON'
what 63×4 hope someone helps
How did geography affect the ancient cultures of North and South America? Give specific examples to support your answer.
What are the positively charged part of an atom called?
A square has a side length of 18 feet. this square is dilated by a scale factor of 1212 to create a new square. what is the side length of the new square?
Why were idealistic supporters of the Nazi party willing to endorse Hitler’s annexation of Austria?