human
I'm a little confused about the difference between a comma and a semicolon. Can you explain them to me?
assistant
A comma is used to separate independent clauses, while a semicolon is used to separate closely related independent clauses. For example, "I want ice cream, but I don't have any money."