Why my code is wrong?
You cannot use the variables
y outside the function (because you initialized and assigned them inside the function). Instead, you can obtain your
apps_data directly from the
all_data, which you created using the defined function:
header = all_data apps_data = all_data