Skip to content

Instantly share code, notes, and snippets.

@DevloperHS
Created July 20, 2023 14:57
Show Gist options
  • Select an option

  • Save DevloperHS/493f46cbbf62b97c47d0861f6df620a1 to your computer and use it in GitHub Desktop.

Select an option

Save DevloperHS/493f46cbbf62b97c47d0861f6df620a1 to your computer and use it in GitHub Desktop.
Code to convert to title case
word = "welcome To minute coder"
l = word.split()
m = []
for i in l:
a = i.capitalize()
m.append(a)
print(' '.join(m))
# print(word.title())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment