English character case conversion code example written in Python

  • 2020-04-02 14:38:09
  • OfStack

A few lines of code for the following conversion

The TRANSACTIONS ON CLOUD COMPUTING

="

The Transactions On Cloud Computing


orig = 'TRANSACTIONS ON CLOUD COMPUTING'
splited = orig.split(' ')
handled = ''
for word in splited:
    word = word[0] +  word[1:].lower()
    handled += (' ' + word)
handled = handled[1:]
print handled
#handled is 'Transactions On Cloud Computing'


Related articles: