Skip to content

Instantly share code, notes, and snippets.

@humayanalrosid
Last active August 7, 2022 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humayanalrosid/90db141aecf3361fdfe4301cf5d67cea to your computer and use it in GitHub Desktop.
Save humayanalrosid/90db141aecf3361fdfe4301cf5d67cea to your computer and use it in GitHub Desktop.
CapWords convention
"""
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