I want to read the inputs line by line for n element and i would want them to be inside a nested list. for 3 elements Input:
Anna
1
Hath
2
Nick
3
Expected output
[["Anna",1]["Hath",2]["Nick",3]]
I planned to run a for loop of n*2 to take the inputs for 6 elements, but every 2 element i wanted to create a list, and all these seperate lists would be a part of a bigger list.