title: How to format a name
body: <p>I'm taking a class on python and the lab assignment asks...</p>
  <p>Many documents use a specific format for a person's name. Write a program whose input is:</p>
  <pre><code>firstName middleName lastName
  </code></pre>
  <p>and whose output is:</p>
  <pre><code>lastName, firstInitial.middleInitial.
  </code></pre>
  <p>Ex: If the input is:</p>
  <pre><code>Pat Silly Doe
  </code></pre>
  <p>the output is:</p>
  <pre><code>Doe, P.S.
  </code></pre>
  <p>If the input has the form:</p>
  <pre><code>firstName lastName
  </code></pre>
  <p>the output is:</p>
  <pre><code>lastName, firstInitial.
  </code></pre>
  <p>Ex: If the input is:</p>
  <pre><code>Julia Clark
  </code></pre>
  <p>the output is:</p>
  <pre><code>Clark, J.
  </code></pre>
  <p>So far I have...</p>
  <pre><code>firstName = input()
  middleName = input()
  lastName = input()
  lastName2 = input()
  firstName2 = input()
  
  print(lastName+ ',', (firstName[0])+'.'+(middleName[0])+'.')
  </code></pre>
  <p>on the test screen, it says it outputs as Doe, P.S. but when I go to the submit screen it says there's no output. I don't get any of this.</p>
  <p>This is the error message I'm getting</p>
  <pre><code>0 / 3
  Traceback (most recent call last):
    File &quot;main.py&quot;, line 2, in &lt;module&gt;
      middleName = input()
  EOFError: EOF when reading a line
  Input
  Pat Silly Doe
  Your output
  Your program produced no output
  Expected output
  Doe, P.S.
  </code></pre>