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 items in a list, while a semicolon is used to separate independent clauses within a sentence. For example: "I like apples, bananas, and oranges."