By index

Direct index assignment.

lst = [1,2,3]
lst[1] = 20  # [1,20,3]