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

8=56 7=42 6=30 5=20 3=? What does 3 equal?
Social networking allows businesses to _______. a. Connect with hundreds of consumers at once b. Provide personal feedback to consumers c. Advertise in a cost e
Which of the following pairs of numbers contain like fractions? A. 3 /2 and 2 /3 B. 6 /7 and 15 /7 C. 5 /6 and 10/12 D. 31 /2 and 43 /4
When two stars are bound together gravitationally and orbit a common mass, they're known as A. meteoroids. B. galaxies. C. constellations. D. binary stars.
. 7/8 = /48 A. 6 B. 1 C. 13 D. 42
simplify log (x2-y2)- log (x-y)=
If you buy 3 sandwiches for 4.95 or 4 sandwiches for 6.72 which is the better buy
Describe two setback that Walt Disney experienced
what 21 over 4 equivalent to
A customer wants to tip 15% on a restaurant bill that is $35. What will the total bill be including the tip? Round to the nearest cent if necessary