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

A nation that is disbursed across a region and is predominate in two or more state is called a
1 2Find the volume of the pyramid.4.2H1 ft2 fi​
You may use another poet's work as a model when writing your own, but _____. be sure that you change the words so that they are not exactly the same stay true t
Which supercontinents were present on Earth at the beginning of the Cretaceous period? A. Laurussia and Gondwana B. Pangaea C. Rodinia D. Laurasia and
Which of the following rights is granted by the Fifth Amendment?
Read the excerpt from White Fang. The man who had spoken came over to her. He put his hand upon her head, and she only crouched closer. She did not snap, nor th
please help me with this question image attached
PLZ DON'T DELETE THIS IT'S AN ACTUAL QUESTION, MY TEACHER MADE MY HW "FUN" FOR THE LAST WEEK OF SCHOOL!!!!! A IS THE FATHER OF B BUT B IS NOT THE SON OF A. HOW'
Evaluate the function f(p) = p2 + 3p + 1 for p = -2.​
Any suggestions for a ps4 username? I’m a girl