The corresponding Python functions are