title: Function parameters - Python
body: <pre><code>def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
      print "-- This parrot wouldn’t", action
      print "if you put", voltage, "volts through it."
      print "-- Lovely plumage, the", type
      print "-- It’s", state, "!"
  </code></pre>
  
  <p>I started learning python. I can call this function using parrot(5,'dead') and parrot(voltage=5). But why can't I call with the same function with parrot(voltage=5, 'dead')?</p>