title: Python Crash Course 2nd edition Chapter 8 - formatted_name.py
body: <p>I'm learning Python from the book by Eric Matthes and I love the experience but even though I am  a beginner, I love to keep the code shorter.
  I have a question regarding this piece of code:</p>
  <p><code>formatted_name.py </code></p>
  <pre><code>def formatted_name(first_name, last_name):
      &quot;&quot;&quot;Return a fully formatted name.&quot;&quot;&quot;
      full_name=f&quot;{first_name} {last_name}&quot;
      return full_name.title()
  musician=formatted_name('jimi','hendrix')
  print(musician)
  </code></pre>
  <p>I love simplifying code, so I got the same result from:</p>
  <pre><code>def formatted_name(first_name, last_name):
      &quot;&quot;&quot;Return a fully formatted name.&quot;&quot;&quot;
      return (f&quot;{first_name} {last_name}&quot;).title()
  print(formatted_name('jimi','hendrix'))
  </code></pre>
  <p>However the book says 'When you call a function that returns a value, you need to provide a variable that the return value can be assigned to.'</p>
  <p>Am I wrong here or can I do it like that?</p>