We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e43345 commit 743f95aCopy full SHA for 743f95a
strings/capitalize.py
@@ -19,7 +19,7 @@ def capitalize(sentence: str) -> str:
19
# Get the first character of the sentence
20
first_char = sentence[0]
21
# Check if the first character is a lowercase letter
22
- if 'a' <= first_char <= 'z':
+ if "a" <= first_char <= "z":
23
# Convert the lowercase letter to uppercase using ASCII value
24
first_char = chr(ord(first_char) - 32)
25
# Return the capitalized first character concatenated with the rest of the sentence
0 commit comments