title: how to search for a capital letter within a string and return the list of words with and without capital letters
body: <p>My homework assignment is to Write a program that reads a string from the user and creates a list of words from the input.Create two lists, one containing the words that contain at least one upper-case letter and one of the words that don't contain any upper-case letters.
  Use a single for loop to print out the words with upper-case letters in them, followed by the words with no upper-case letters in them, one word per line.</p>
  
  <p>What I know is not correct:</p>
  
  <pre><code>s= input("Enter your string: ")
  words = sorted(s.strip().split())
  for word in words:
      print (word)
  </code></pre>
  
  <p>Because it only sorts the sequence if the Capitol is in the first character.  For this assignment a character could appear any where within a word.  Such as, <code>'tHis is a sTring'</code>.</p>
  
  <p>I was playing around with a solution that looked similar to this, just to see if I could get the words with CAPS out..But it just wasnt working:</p>
  
  <pre><code>    s = input("Please enter a sentence: ")
  while True:
      cap = 0
      s = s.strip().split()
      for c in s:
          if c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
              print(c[:cap])
              cap += 1
      else:
          print("not the answer")
          break 
  </code></pre>
  
  <p>But a regular expression would probably do a better job than writing out the whole alphabet.</p>
  
  <p>Any help is much appreciated.  Needless to say I am new to python.</p>