(input_string)
| 87 | |
| 88 | |
| 89 | def reformat_string_to_headline(input_string): |
| 90 | # Replace underscores with spaces |
| 91 | formatted_string = input_string.replace("_", " ") |
| 92 | # Capitalize the first letter of the sentence |
| 93 | formatted_string = formatted_string.capitalize() |
| 94 | return formatted_string.replace("python", "Python").replace("api", "API").replace("Api", "API") |
no outgoing calls
no test coverage detected