format code
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user