human
I'm a bit confused about the difference between a comma and a semicolon. Can you please explain?
assistant
A comma is used to separate items in a list, while a semicolon is used to separate clauses in a sentence. For example: I want to eat pizza, ice cream and cake; or The dog ran after the car, barking loudly.