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

Read the passages to answer the questions and give your best answers.Questions: Which sentence BEST explains why the author of "The Hardy Live Oak" says that th
What is the equation of the line that passes through the point (-6, -3) and has a slope of 0
SOMEONE PLEASE HELPP!!
how do I get the average of two numbers when one has more than the other​
The students in Herman's grade voted to select a guest speaker. 435 students voted for a famous athlete. The other 65 students in Herman's grade voted for a fam
Given that logaN - logax = 3/2 express x in terms of a and N, giving your answer in a form not involving logarithms.
Consider the following code segment. What is the value of result after the code segment is executed? (WILL GIVE BRAINLIEST IF CORRECT)A) 6B) 10C) 15D) 21
You are running for students council president if you win the election you’ll need to give an acceptance speech to your peers
PLEASE HELP WILL MARK BRAINLIST If the ratio of the rectangular prisms' volumes is 1:8, what is j?
Why did Truman want to create another ally in the Middle East? Why Israel?