Last active
August 7, 2022 12:04
-
-
Save humayanalrosid/90db141aecf3361fdfe4301cf5d67cea to your computer and use it in GitHub Desktop.
CapWords convention
This file contains 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
""" | |
In Python, the names of classes (you'll learn about them in detail later) follow the CapWords convention. | |
Let's convert the input phrase accordingly by capitalizing all words and spelling them without underscores in-between. | |
""" | |
print(input().title().replace('_', '')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment