When a list is sorted, perhaps in ascending numerical order (for integer only list) or alphabetical order in case of strings (for string only list), can I say that the list is mutated, considering the fact that the index number of the items in the list have been changed? For example:
x = ["Alexa", "Siri", "Cortana"]
x_sorted = sorted (x)
print (x_sorted)
# ["Alexa", "Cortana", "Siri"]
print (x)
# ["Alexa", "Siri", "Cortana"]