curriculum/challenges/english/blocks/learn-how-to-use-code-related-concepts-and-terms/66325225b08cff7be37ac2e7.md
Relative pronouns like who, whom, which, and that are used to connect relative clauses to a noun or pronoun.
Who and whom refer to people. The difference is who is the subject of a verb, while whom is used as the object of a verb or preposition.
Which is used for specific things or animals, and that can be used for people, things, or animals in defining clauses.
Examples:
The programmer who wrote this code is brilliant. (who refers to the programmer)
The artist whom we met at the gallery is internationally recognized. (whom refers to the artist)
The tool that you lent me was useful. (that refers to the tool)
The book, which I bought yesterday, is already a bestseller. (which refers to the book)
Which sentence uses a relative pronoun correctly?
The teacher which teaches us math is very kind.
which is typically used for things, not people. The correct pronoun here should be who.
The car, that won the race, is very fast.
In this sentence, the use of that is correct grammatically, but the commas are unnecessary. It should be: The car that won the race is very fast.
She is the one who made the cake.
The flowers whom are on the table smell lovely.
Whom is used for objects of verbs or prepositions when referring to people, not for things like flowers. The correct pronoun here should be which or that.
3