How Does Range Function Works In Python