Given list is this.
list1 = [10, 20, [300, 400, [5000, 6000], 500], 30, 40]
Expected Output is this. I know it is so basic question but I am confused.
Output:
[10, 20, [300, 400, [5000, 6000, 7000], 500], 30, 40]
I want anyone to helo me to solve this. And also explain the insert function with nested list.
New contributor
Raqeeb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.