It’s excellent that you are curious about this!
So, here is the answer you actually need to satisfy your curiosity -
Print and play around with the code
- You have
json_data
, print it. See what it outputs.
- You have
json_data["response"]
, print it. See what it outputs.
- You have
json_data["response"][0]
, print it. See what it outputs.
- You have
json_data["response"][0]
, change that 0
to something else and print it. See what it outputs.
Based on all the above steps, make a conclusion about what is happening and what happens when you change things. That’s what will resolve your confusion AND help you resolve future confusions about similar questions.
Print things out and play with your code! Feel free to ask further questions if need be.