Oct-03-2017, 03:54 PM
I'm guessing this is for python, as I'm not sure what phyton is. That said, you can manipulate a list's contents via the indices of the list's items:
>>> items = list(range(10)) >>> items [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> items[1] = "second element" >>> items [0, 'second element', 2, 3, 4, 5, 6, 7, 8, 9]