Sep-26-2019, 07:47 AM
just use assignment
>>> my_list = ['foo', 'bar'] >>> my_list[0] = 'spam' >>> my_list ['spam', 'bar'] >>> my_list = [1, 2, 3, 4] >>> my_list[1:3] = [5, 6] >>> my_list [1, 5, 6, 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