So I wanted to for example, if a list has elements like
You mean, like, changing C and the dot position? You could have something like:
list_ = [A, B, C, ., D] tmp = list_ list_ = list_ list_ = tmp
The list_ would look like [A, B, ., C, D].