code:
a = 'g'
b = a.title()
b.replace(b, a)
print(b)
output: G
I think the output should be 'g' lowercase as the replace statement replaces the uppercase 'G' to lowercase one.
I am trying to solve a challenge in which I have to capitalize a string but not the one that starts with numerals?
c = b.replace(b, a)