title: How do I make part of a string lowercase in python?
body: <p>I am trying to take a string that is about a paragraph long and lowercase all of the words in it that are not completely uppercase. "The QUICK brown fOx" should print as "the QUICK brown fox" after this function. It seems to not change anything, but it does leave the words that are all caps. How would I lowercase a word in a string and return it to the string?</p>
  
  <pre><code>def AllCaps(string):
  for word in string.split(' '):
      if word.isupper()==True:
          pass
      else:
          word = word.lower()
  print(string)
  </code></pre>