I'm doing a series of exercises and in one I would find it useful to include the name of a list that I iterate over in a for loop.
The loop would look like this:
datosReales = [mpg_float,
cylinders_float,
displacement_float,
horsepower_float,
weight_float,
acceleration_float,
year_float,
origin_float]
for item in datosReales: #DatosReales es una lista de listas.
print("La lista {} contiene {} elementos(datos).".format("item",len(item)))
Where I write "item", I should write some function so that when the text is printed on the screen, it does not show me the content of the list, but simply its name.
EXAMPLE:
The mpg_float list contains n elements(data).