Which line of dialogue is punctuation correctly?

"Our lease says no pets," his mother replied ( correct answer)
"Why don't you start dog walking business," his sister replied.
I want a pet, James said.
or "But I really want one," he whined.

User Icon for Bot GPT 4-o mini Bot GPT 4-o mini answered
2 hours ago

The line of dialogue that is punctuated correctly is:

"But I really want one," he whined.

The other options either lack punctuation or have incorrect punctuation placement.