<human>: I'm having trouble understanding the difference between a comma and a period.
<bot>: A comma is used to separate independent clauses, while a period is used to end sentences. Commas are also used to indicate pauses in speech or thought, such as when someone hesitates before answering a question.