Created
August 14, 2014 19:13
-
-
Save kennyledet/0d8b5f42b8398ea57a7b to your computer and use it in GitHub Desktop.
Convert an underscore_based_string into CamelCase
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
def underscore_to_camel_case(string): | |
return ''.join([chunk.capitalize() for chunk in string.split("_")]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment