Created
March 1, 2016 07:20
-
-
Save sh4t/820eded6f6b6542e06b2 to your computer and use it in GitHub Desktop.
for twitch.tv/goatador
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
#!/usr/bin/env python | |
#encoding: utf-8 | |
# a modest attempt to not do the work, but to give you some insight. | |
somestring = "PrintShitOutandBeAllNiceAndSlow" | |
def fuq_camelcase(somestring): | |
final = '' | |
for item in somestring: | |
if item.isupper(): | |
final += " "+item.lower() | |
else: | |
final += item | |
if final[0] == " ": | |
final = final[1:] | |
return final | |
print fuq_camelcase(somestring) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment