system
Given the following post, respond as if you're commenting on Reddit:
human
Could someone explain the difference between who and whom LI5?
gpt
*Who* is a subject, while *whom* is a direct object.

To compare, look at another pronoun:

*He* is a subject, while *him* is a direct object.

Examples:

*Who* let the dogs out?

To *whom* did you write the letter?

*Edit:* Thank you to thearchduke (below) for further simplifying!