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, "!"
I started learning python. I can call this function using a parrot (5, "dead") and a parrot (voltage = 5). But why can't I call with the same function with a parrot (voltage = 5, "dead")?
python
Ramana venkata
source share