age of Python programmers

Cousin Stanley cousinstanley at hotmail.com
Wed Aug 18 16:03:36 EDT 2004


On 2004-08-18, Lucas Raab <pythongnome at hotmail.com> wrote:

| One thing I've always kind of wondered is what is the average age 
| of a Python programmer ?? 
|
| What age groups use Python ?? 
|
| Something to think about....

>>> import time
>>>
>>> tup_lt = time.localtime()
>>>
>>> now_yr = tup_lt[ 0 ]
>>> now_mo = tup_lt[ 1 ]
>>> now_da = tup_lt[ 2 ]
>>>
>>> dob_yr = 1946
>>> dob_mo = 8
>>> dob_da = 9
>>>
>>> dy     = now_yr - dob_yr
>>> dm     = now_mo - dob_mo
>>> dd     = now_da - dob_da
>>>
>>> print '\n    %d Years .... %d Months .... %d Days .... Old \n' % ( dy , dm , dd )

    58 Years .... 0 Months .... 9 Days .... Old

>>>


-- 
Cousin Stanley
Human Being
Phoenix, Arizona



More information about the Python-list mailing list