Python Get Substring From End Of String Python Functions