def format_quote(text:str)->str: text = text.strip() if not text.endswith((".","?","!")): text += "." return text.upper()