Is there a more efficient one liner to initialize a variable based on a condition?
<p>Can the <code>atype</code> variable be initialized via a one liner ?</p>

<pre><code>def detect(dt,result):
    """ prints the type of date """
    atype = 'unknown'
    if 'greg' in result:
        atype = 'Gregorian'
    elif 'eth' in result:
        atype = 'Ethiopian'

    print '%s is in %s format.' % (dt,atype)
</code></pre>
