title: How to get the first character of a string?
body: <p>I need help to see what is wrong with my code; I'm getting the incorrect output. </p>
  
  <p>I need the output to print the first initial and last name (with a period <code>.</code> in front of the first initial), for example: <code>"Anna Lockswell"</code> should be printed as <code>"A. Lockswell"</code>.</p>
  
  <p>So far I have:</p>
  
  <pre><code>firstName = input("What is your first name? ") 
  lastName = input("What is your last name? ")
  str(print(firstname[0:-1], +lastname))
  </code></pre>