Python common build-in functions

any and all

any([any_one, is_true])all([all, must, true])

chr and ord

>>> chr(123)
'{'
>>> ord('a')
97

getattr, hasattr, setattr and delattr

>>> class x:
... a='1'
... b='2'
...
>>> hasattr(x,'a')
True
>>> hasattr(x,'c')
False
>>> getattr(x,'a')
'1'
>>> getattr(x,'b')
'2'
>>>…