Skip to content

Commit 743f95a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3e43345 commit 743f95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/capitalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def capitalize(sentence: str) -> str:
1919
# Get the first character of the sentence
2020
first_char = sentence[0]
2121
# Check if the first character is a lowercase letter
22-
if 'a' <= first_char <= 'z':
22+
if "a" <= first_char <= "z":
2323
# Convert the lowercase letter to uppercase using ASCII value
2424
first_char = chr(ord(first_char) - 32)
2525
# Return the capitalized first character concatenated with the rest of the sentence

0 commit comments

Comments
 (0)