human
I'm a bit confused about the difference between a comma and a semicolon. Can you explain the difference to me?
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 pizza, pasta, and tacos." Here we have three different types of food listed with commas. However, if I said, "I like pizza; pasta; tacos," then this would mean that I liked all three foods equally.