Suppose a list in Python -> mylist:
mylist = []
I want to now take input from users and update the values afterward in mylist:
input1 = ["xyz","wyh",34]
print mylist
Output: [["xyz","wyh",34]]
input2 = ["yo","hey",657]
print mylist
output: [["xyz","wyh",34],["yo","hey",657]]
append() only works when list has some values already.