Currently I have written code that allows the user to input a list:
length=int(input('Please enter how long you want your list: '))
list1=[ ]
p=0
while p<length:
number=int(input('Please enter an integer: '))
list1.append(number)
p=p+1
print(list1)
This allows the user to choose how long they want their list to be, and then chose the integers they want in the list. The problem with this is that is does not allow the user to enter in nested lists. Ex. [2,4,[6,8],10]] I was wondering if here was a way for the user to input a list of list. My overall goal is to then flatten that inputed list of list using while loops.
int,list, or whatever you care to.