Given a list of strings in python, for ex:
list_str = ['aa', 'bb', 'abc'].
What is the cost/complexity of replacing an element of the list as given below :
list_str[i] = 'xyz'
(Assume length of the list to be n, and length of a string is at most m)