human
I'm a little confused about the differences between a comma and a semi-colon. Can you help?
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 have two dogs, a cat, and a bird." In this sentence, the commas separate each item in the list of animals, while the semicolons separate each independent clause.