A teacher in Florida is out of a job after giving students an assignment asking them how they feel interacting with students of different races or groups — including young black men, fundamental Christians, Jewish roommates and transsexuals.

The assignment — “How Comfortable Am I?” — was given to students at Fox Chapel Middle School in Spring Hill, asking them to rate on a scale of 1 through 4 how content they would feel in various situations like being in a gay bar or dealing with a panhandling homeless man.

“A group of young black men are walking toward you on the street,” one hypothetical situation read.

It also asked students how they would feel if their “new suite mates are Mexican,” or if they would feel uneasy if “the young man sitting next to you on the plane is Arab.”

Other questions included references to people with learning disabilities, those who are overweight or living with HIV, as well as Muslims, Iranians, Palestinians and Native Americans.

Karen Jordan, public information officer for the Hernando County School District, confirmed to The Post that the teacher behind the assignment has been fired.

“The teacher did leave a supplemental assignment for students to complete in her absence,” Jordan wrote in a statement. “In no way, does this assignment meet the standards of appropriate instructional material. After being made aware of the survey, school administration began an investigation and took immediate disciplinary action.”

Jordan declined to identify the teacher, who was earning nearly $37,000 prior to her termination.

One mother of a 12-year-old girl who received the assignment told WFTS she found it to be “completely inappropriate.”

“In no world, whatsoever, is that OK to question a child on,” the disgruntled mom, Jennifer Block, told the station.

Tori Drews, a sixth-grader at the school, said she got the assignment during her “Leader in Me” class, in which students focused on accepting diversity.

“There were children that were saying this is wrong. ‘Why are we doing this?’ ‘Does this have a reason?’ She was going, ‘Yeah this is kind of wrong … maybe I should take it back,'” Tori told the station. “Kids were asking if they could share it with their parents. She was like, ‘No. Don’t show your mom. Don’t take that home. I’m taking it back up.’”