You have a code that helps recognize named entities in your sentence. There is an error in the code. Try to find the line with the error, correct it, and write the corrected line in the text field below.
import spacy
en_sm_model = spacy.load("en_core_web_sm")
doc = spacy("Saint Petersburg is my favourite city.")
for i in doc.ents:
print(i.text)