Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple not using "title()" solution in Creative category for Convert To Title Case by tamagoyaki
def to_title_case(sentence: str) -> str:
return "".join([c.upper() if i in [0]+[j+1 for j in range(len(sentence)) if sentence[j] == " "] else c.lower() for i,c in enumerate(sentence)])
Feb. 16, 2024