title: Capitalization of each sentence in a string in Python 3
body: <p>This should be easy but somehow I'm not quite getting it.</p>
  
  <p>My assignment is: </p>
  
  <blockquote>
    <p>Write a function sentenceCapitalizer that has one parameter of type string. The function returns a 
    copy of the string with the first character of each sentence capitalized. The function should return 
    “Hello. My name is Joe. What is your name?” if the argument to the function is “hello. my name is 
    Joe. what is your name?” Assume a sentence is separated by a period followed by a space."</p>
  </blockquote>
  
  <p>What I have so far is:</p>
  
  <pre><code>def sentenceCapitalizer (string1: str):
      words = string1.split(". ")
      words2=words.capitalize()
      string2=words2.join()
      return (string2)
  
  print (sentenceCapitalizer("hello. my name is Joe. what is your name?"))
  </code></pre>
  
  <p>Upon execution I get the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Andrew\Desktop\lab3.py", line 83, in &lt;module&gt;
      print (sentenceCapitalizer("hello. my name is Joe. what is your name?"))
    File "C:\Users\Andrew\Desktop\lab3.py", line 79, in sentenceCapitalizer
      words2=words.capitalize()
  AttributeError: 'list' object has no attribute 'capitalize'"
  </code></pre>
  
  <p>What is that telling me and how do I fix this? I tried following instructions found on a page listed as the python software foundation so I thought I'd have this.</p>