Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list generation for python

l=[]
n = int(input("pls input the no of elements u need "))
print("enter",n,"elements")
for l in range(n):
     x = int(input())
        l .append(x)
print("generated list",l)
#it works :D
 
PREVIOUS NEXT
Tagged: #list #generation #python
ADD COMMENT
Topic
Name
3+1 =