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 independent clauses in a sentence, while a semicolon is used to join two closely related independent clauses together. For example, "I like ice cream; I like cookies" would be a correct sentence using a comma to separate the two clauses. However, "I like ice cream; I like cookies because they are both delicious" is an incorrect sentence as it uses a semicolon incorrectly.