• Why the code is error

Question related to mission Correct Sentence

 

if text.rfind(text,0,0)!=".": text=text+"." return text.capitalize()