Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to dynamically append value in a list in python

x = []
n = input("enter length")
for i in range(1, int(n)):
    k=input("enter value")
    x.append(k) # push your entered value

print x
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamically #append #list #python
ADD COMMENT
Topic
Name
6+5 =