Generowanie listy Pythona

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
Jolly Jay