learning the function of python