6 lines
147 B
Python
6 lines
147 B
Python
def format_quote(text: str) -> str:
|
|
text = text.strip()
|
|
if not text.endswith((".", "?", "!")):
|
|
text += "."
|
|
return text.upper()
|