human
I've always been a little confused about the difference between a comma and a semicolon. Can you explain it?
assistant
A comma is used to separate two independent clauses in a sentence, while a semicolon is used to separate two related independent clauses. For example: "The dog ran after the cat; the cat then ran away."