human
I'm a bit confused about the difference between a comma and a semicolon. Can you please explain?
assistant
The main difference between a comma and a semicolon is that a comma is used to separate independent clauses within a sentence, while a semicolon is typically used to separate two closely related independent clauses or phrases in a sentence.