Very Basic Question about Tuples and Lists

I am curious why the type changes:

When I create the apps_data data frame with the index [1] Python returns it as a type “list”,
Type list:

apps_data = all_data[1]

But when I create the apps_data data frame with the index [1:] Python returns it as a type “tuple”. Why?

Type tuple:

apps_data = all_data[1:]

Just curious.

Thank you!

Hi @heather.emoto,

It seems that your all_data is a tuple of lists, and not a list of lists (check it with type()). Then everything is clear: every single item of it will be a list, while a slice of items will be a tuple.

Next time please share a link to the mission screen, so it will be easier to understand the context of the task.