November 2017
Beginner to intermediate
204 pages
5h 23m
English
Each of the data variables should be extracted from the old entry and placed in the new entry. This can be done using a nested for loop, an additional for loop inside the base for loop. You can use a nested for loop to iterate over each of the data variables in the variables array.
Within the base for loop, create a new nested for loop that iterates over the elements in the variables array. In the nested for loop, write a statement that sets the value of each variable in the new array to the value of the variable in the old array:
...for old_entry in issues: new_entry = {} for variable in variables: new_entry[variable] = old_entry[variable]
It may be helpful to print out content at ...
Read now
Unlock full access