Telegram project json

what is the difference between response.text and response_text where

also when i return the status as below:
return response.text[“ok”]
in send_telegram_message function
it gives error saying that string indices should be integers.why this error comes ?please explain in detail?

because when i print response.text and response_text both on the command line
the difference was just of single quotes and double quotes i can not find any other difference

response.text is a string value obtained from previous steps.
response_text is a variable used to store response.text in json format.

The code : return response.text[“ok”] is wrong. As response.text is a string you cannot use indexing with alphabets, only integers is possible.
You must use : return response_text[“ok”]

so json data also contains string then why can we use indexing with it?