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

which perspective believes that behavior is learned through awards and punishments
1. Solve the equation: - 2x + 8 = 3x + 14
What angles would have to be congruent to prove the triangles are congruent by SAS? A. AEB = CED B. AEB = DEC C. ECD = EAB D. CDE = ABE
i met someone...said he knew you
Evaluate the expression: ab + 2 – 1 Use a = 3 and b = 4
the singer was popular because he knew______the crowd​
Evaluate : A. [tex]x^{x^3}=3[/tex] B. [tex]4^x +6^x =9^x[/tex]
(PLEASE SOLVE ASAP EXPLAIN ALSO)
Divide. Write your answer as a decimal. 8.722÷(−3.56)=
1. Find the distance between the pair of points: (-8, -2) and (-4,5)