Files
confucius-quote-bot/formater.py
T
2026-08-10 09:59:42 +03:00

6 lines
146 B
Python

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