Chat completion: response['choices'] throwing error in python (VSCode)

After reading around and following some steps, I also even used chatgpt with prompts to help me build my own chatgpt agent python file to be used for a small project I am working on. and I continue to get a error grammer or syntax in visual studio, the error is with response[‘choices’].

but in the document: Chat completion - OpenAI API, right after response format, I am seeing the line (response[‘choices’][0][‘message’][‘content’]

so I am not sure where I am making a mistake and how I can resolve it. I am still new with coding in general and I wanted to use chatgpt to help me practice and build my knowledge and understanding of coding while developing my prompt skills