MCPcopy Create free account
hub / github.com/geekcomputers/Python / capitalize_title

Function capitalize_title

news_oversimplifier.py:104–114  ·  view source on GitHub ↗

Capitalizes all letters in a given article title. args: title (str): The title to format. returns: str: Title in uppercase with surrounding spaces removed.

(title)

Source from the content-addressed store, hash-verified

102
103
104def capitalize_title(title): # pytest in test file
105 """
106 Capitalizes all letters in a given article title.
107
108 args:
109 title (str): The title to format.
110
111 returns:
112 str: Title in uppercase with surrounding spaces removed.
113 """
114 return title.upper().strip()
115
116
117def fetch_news(api_key, query, max_articles=5): # no pytest

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected