Design Architecture for Utility Functions #2

Open
forge-bot wants to merge 9 commits from forge/iss-1ac610bafd4c into main
Showing only changes of commit 43f1a45982 - Show all commits

10
utils/string_utils.py Normal file
View file

@ -0,0 +1,10 @@
def capitalize_first_letter(s):
"""Capitalizes the first letter of a string."""
if not s:
return s
return s[0].upper() + s[1:]
def reverse_string(s):
"""Reverses the given string."""
return s[::-1]