The president of the University at Pennsylvania has resigned due to the pressure of donors and criticism about his testimony during the congressional hearing on antisemitism on campus.