Python’s phenotype

Phenotype: any observable characteristic or trait of an organism: such as its morphology, development, biochemical or physiological properties, or behavior.

..


IDLE 1.2
>>> type('aaa')
<type 'str'>
>>> type('aaa')
<type 'str'>
>>> type('aaa') == type('a')
True
>>> type(type('aaa') == type('a'))
<type 'bool'>
>>> type(type(type('aaa') == type('a')))
<type 'type'>
>>> type(type(type(type('aaa') == type('a'))))
<type 'type'>
>>> type(type(type(type(type('aaa') == type('a')))))
<type 'type'>

If you don’t know what’s going on, I’ve just been fooling around with python’s type system and IDLE

.

Share/Bookmark






Comments are closed.