Capitalizar la primera carta en Python
s = "python"
print("Original string:")
print(s)
print("After capitalizing first letter:")
print(s.capitalize())
Itchy Impala
s = "python"
print("Original string:")
print(s)
print("After capitalizing first letter:")
print(s.capitalize())
def decapitalize(str):
return str[:1].lower() + str[1:]
print( decapitalize('Hello') ) # hello
x = "string"
y = x[:3] + x[3].swapcase() + x[4:]