Welcome to the Community!
Does it mean that new var containing values ‘free’ and ‘non-free’ will be placed as a first vaiable in this dataset?
In this for-loop we iterate through the list of lists
apps_data starting from its second list (hence
[1:]) and to each list (
app), we append at the end a string “free” or “non-free” according to the condition.
and here: apps_data.append(‘free_or_not’) it is renamed
No, it’s not renamed. In the for-loop, we were iterating through the list of lists starting from the second list. Hence, till now, we never modified anything in the first list (the one with the index 0). Practically, this zero-indexed list is a list of column names for all the subsequent lists. Running this code:
we append to this list the string “free_or_not”, which can be considered as a name of the new column that we created earlier inside the for-loop.
For your future questions, please consider adding the corresponding mission link and enclosing your code into backticks. You can find useful this guide. Thank you!