<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2234959357357707347.post7361719769107260319..comments</id><updated>2010-06-15T17:37:50.222+05:30</updated><title type='text'>Comments on Life and IT: Python Script: Converting strings to camel case</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.lifeandit.com/feeds/7361719769107260319/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234959357357707347/7361719769107260319/comments/default'/><link rel='alternate' type='text/html' href='http://www.lifeandit.com/2009/03/python-script-converting-strings-to.html'/><author><name>Hari</name><uri>http://www.blogger.com/profile/15563343530303555414</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2234959357357707347.post-336802951619226294</id><published>2010-06-15T17:37:50.217+05:30</published><updated>2010-06-15T17:37:50.217+05:30</updated><title type='text'>Why not just this?

def getCamelCase(s, sep=' '):
...</title><content type='html'>Why not just this?&lt;br /&gt;&lt;br /&gt;def getCamelCase(s, sep=&amp;#39; &amp;#39;):&lt;br /&gt;    tl = []&lt;br /&gt;    for t in s.split(sep):&lt;br /&gt;        tl.append(t.title())&lt;br /&gt;    return &amp;#39;&amp;#39;.join(tl)&lt;br /&gt;&lt;br /&gt;Another way, faster but less readable:&lt;br /&gt;&lt;br /&gt;def getCamelCase(s, sep=&amp;#39; &amp;#39;):&lt;br /&gt;    return &amp;#39;&amp;#39;.join([t.title() for t in s.split(sep)])</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2234959357357707347/7361719769107260319/comments/default/336802951619226294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2234959357357707347/7361719769107260319/comments/default/336802951619226294'/><link rel='alternate' type='text/html' href='http://www.lifeandit.com/2009/03/python-script-converting-strings-to.html?showComment=1276603670217#c336802951619226294' title=''/><author><name>Mario</name><uri>http://www.blogger.com/profile/09241062648860694761</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.lifeandit.com/2009/03/python-script-converting-strings-to.html' ref='tag:blogger.com,1999:blog-2234959357357707347.post-7361719769107260319' source='http://www.blogger.com/feeds/2234959357357707347/posts/default/7361719769107260319' type='text/html'/></entry></feed>