If Type String Python Functions