Created
July 20, 2023 14:57
-
-
Save DevloperHS/493f46cbbf62b97c47d0861f6df620a1 to your computer and use it in GitHub Desktop.
Code to convert to title case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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