In Python, from what I understand, the closest thing to arrays are the listas
and the tuples
. I would like to know if there is any way that at least, by entering a new datum in a list, you can give it a name, as if it were an associative array. That way when I need to use that information I would look for it by the name I gave it and not by the position in the list, something that can vary.
At the moment I only use lists in Python:
info_juego = []
info_juego.append(dato)