format code

This commit is contained in:
2026-08-10 10:11:48 +03:00
parent 9191242a93
commit 1be9a73dbd
3 changed files with 16 additions and 18 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
def format_quote(text:str)->str:
def format_quote(text: str) -> str:
text = text.strip()
if not text.endswith((".","?","!")):
if not text.endswith((".", "?", "!")):
text += "."
return text.upper()