How to input a list in list in Python? : <p>I want to create a list in Python. That list contains N lists. Here, N == int(input()). </p>

<p>Say, I want to create a list which again contains N list. N is the number of people and that sub_list will contain the people's name and age.</p>

<p>I want to keep the data in this format: Sub_list = [name, age]. I want this sub list to be a part of the main list. So, basically it should look like this: main_list = [[name, age], [name, age], [name, age]...N]. But, I want to input() the name and age and also keep the [name, age] as a sub-list being a part of main list. How do I do that?</p>

<p>I'm really sorry for asking such a silly question. I'm new to Python and programming as a whole. I tried to solve this problem on my own for while. But couldn't. So, I've decided to share this silly problem in StackOverflow. Sorry for inconvenience :'(  </p>
