title: Defining function with different placeholders
body: <p>New to python and my first time using stack so forgive me for any obvious errors. I am trying to define a function and can't seem to get the output I want.. ( &quot;Hi, Corey&quot; ) unless I define the function with empty placeholders. Literally started coding last week so I would appreciate if somebody told me in the most simple terms why this is the case.</p>
  <pre><code>def hello_func(greet=&quot;Hey&quot;, name=&quot;You&quot;):
      return &quot;{greet},{name}&quot;.format(greet, name)
  
  print(hello_func(&quot;Hi&quot;,&quot;Corey&quot;))
  </code></pre>
  <p>This was my original code which didn't produce the output I wanted.</p>
  <pre><code>def hello_func(greet=&quot;Hey&quot;, name=&quot;You&quot;):
      return &quot;{},{}&quot;.format(greet, name)
  
  print(hello_func(&quot;Hi&quot;,&quot;Corey&quot;))
  </code></pre>
  <p>While this code did produce the output.</p>