In python, is it possible to store a variable in a list? For example, if I want to have a variable depending on it's index in a list, can I do that? I can come up with an alternate solution, but I just wanted to know if something like this was possible.
An example of this scenario would be like sorting a list and having the elements represent user input.