Liberal college students, devastated over the results of the election, have been begging their teachers to cancel classes and midterm exams — and one Yale professor happily obliged on Wednesday.

The unnamed educator said he ultimately chose to give his economics class the option to skip their test so they could cope with the fact that Donald Trump is their new president-elect.

“I am getting many heartfelt notes from students who are in shock over the election returns,” the professor wrote in an email to his students, Yale Daily News managing editor Jon Victor tweeted.

“The ones I find most upsetting are those who fear, rightly or wrongly, for their own families. These students are requesting that the exam be postponed. On the other hand, I am sure that many students have sacrificed to prepare for the test … Therefore, I am making the exam optional.”

The professor told the class he would “calculate each student’s grade both with and without” the exam.

The decision irked many social media users, who were quick to blast the students Wednesday.

“And we wonder why they feel entitled and want everything paid for. What a joke,” wrote one Twitter user.

“Oh, how our hearts should bleed for these poor, shattered little snowflake-children,” another said, in reference to millennials.

Students from a Yale biology class also urged their professor to cancel their midterm — but their request was denied, according to Victor.

“Given the stressful path of the results of the election thus far, regardless of the outcome, the majority of the student body at Yale will be emotionally distraught and distracted … and our performance on the midterm will be hindered massively,” read an email sent to the teacher.

“Is there [any] hope of postponing the exam to preserve the sanctity and mental health of students in this class? Even though the midterm is more about application than fact recall, I am fairly confident that it will be nearly impossible for anyone to focus tomorrow morning. I am sure that many students would even make arrangements to come outside of class time if it means that we will be in a better mental state when taking the exam. Please consider such an act of kindness.”

Others at Yale also asked for dean’s excuses and extensions after the election was called, Victor said.

A student from New York Law School told The College Fix on Wednesday that his professor chose to let his class complain about their new president-elect, rather than do any work.

“The syllabus is being tossed out the window today so everybody can greive [sic] and vent their feelings,” the student said, adding that “assigned cases and topics were left untouched.”

“That’s around $770 of education just today that I’m not getting.”

Meanwhile, students at various schools across the country were protesting the election results on Wednesday — with more than 1,000 high school kids in California walking out of their classes in Berkeley, according to the Associated Press.

Similar demonstrations were reported at colleges in the Bay Area, including near Cal State LA and USC.

Many students voiced their anger by simply walking out and tweeting the hashtag “#NotMyPresident” — while others waved Mexican flags and reportedly chanted, “Si, se puede,” which is Spanish for “Yes, we can.”