#!/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)