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 factors might influence family composition
PLEASE HELP!!!Which pair of rectangles is similar? A. 1 rectangle is 3 and 8 2 rectangle is 2 and 6 B. 1 rectangle is 3 and 6 2 rectangle is 2 and
Texas forces led by Colonel John R. Baylor claimed what area shortly after the war began? A New Mexico Territory B Utah Territory C Colorado Territory D
Grafica los datos de la tabla de inciso 3?
A person temperature is 40 C. What would it be in Kelvin?
how did the fight over tariff become a debate about states right versus federal rights
A _______ is invested by managers in a diversity of stocks, bonds, and other securities. A. preferred stock B. series EE bond C. promissory note D. mutual fund
Gina is 136 cm tall and Rita is 1.32 m tall. Who is taller? How much taller?
justify why each of the following attitudes and behaviour will be ineffective when dealing with interpersonal conflict 1.3.1 Avoiding conflict 1.3.2 Competing w
-7c+9=c+1 If you could also show how you did it i would appreciate it