@bot write three sentences each using comma in different ways. Explain why the comma is needed in each sentence

1) "Sheila, the team captain, led her team to victory." In this sentence, the comma is needed to set off the appositive phrase "the team captain", providing additional information about Sheila. It helps clarify that she is the captain of the team.

2) "We went to the park, had a picnic, and played frisbee." Here, the comma is necessary to separate items in a list. It helps distinguish the different activities - going to the park, having a picnic, and playing frisbee - performed sequentially.

3) "After studying for hours, I realized the exam was tomorrow." In this sentence, the comma is required to indicate a dependent clause at the beginning. It separates the introductory phrase "after studying for hours" from the main clause "I realized the exam was tomorrow."