Write a program to get user input of list?

list = []

n = int(input("Enter number of elements : "))

for i in range(0, n):
ele = int(input())

list.append(ele) 

print(list)

1 Like

@ashutoshbrezzasingh

Yes correct, good work .
Keep Practicing more.

1 Like