Aug-04-2018, 07:08 PM
list.insert()
method works in-place, e.g.my_list = [1, 2, 3, 4] my_list.insert(1, 6) print(my_list)
Output:[1, 6, 2, 3, 4]
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs