How Range Function Works In Python