Some theory here: Coordinating conjunctions connect words, phrases, and clauses. Look at the examples that follow:
The bowl of squid eyeball stew is hot and delicious. – two words
The squid eyeball stew is so thick that you can eat it with a fork or spoon. --- Two words
He likes to dine and dance but not to swim and surf --- two phrases
Jack, the topper in Verbal and Jill, the topper in Quant are the plum faculties in our Institute. --- Two noun phrases.
Rocky, my orange tomcat, loves having his head scratched but hates getting his claws trimmed. --- two predicates
Rocky terrorizes the poodles next door yet adores the German shepherd across the street.—two predicates
Rocky refuses to eat dry cat food, nor will he touch a saucer of squid eyeball stew. – two clauses
Punctuate coordinating conjunctions correctly.
Three patterns in writing use coordinating conjunctions. Add commas when required.
Pattern 1 — Connecting two main clauses
When you connect two main clauses with a coordinating conjunction, use a comma. The pattern looks like this:
MAIN CLAUSE + , + Coordinating Conjunction + MAIN CLAUSE.
Here is an example:
While I am at work, my dog Floyd sleeps on the bed , and my cat Buster naps in the bathtub.
Pattern 2 — Connecting two items
You can also use a coordinating conjunction to connect any two items. These items can be any grammatical unit except main clauses. The pattern looks like this:
ITEM + Ø + Coordinating Conjunction + ITEM
Here are some examples:
My dog Floyd has too many fleas and too much hair.
My cat Buster has beautiful blue eyes but a destructive personality.
Pattern 3 — Connecting three or more items in a series
When you have three or more items in a series, you generally use a comma before the coordinating conjunction. Some handbooks and style guides will tell you that this comma is optional, but my advice is to put it in. The pattern looks like this:
ITEM +, + ITEM +, + Coordinating Conjunction + ITEM
Here is an example:
Swatting olives off the kitchen counter, dragging toilet paper streamers through the house, and terrorizing Jacques Cousteau, the parakeet, have consumed another of Buster's days.
Source https://www.chompchomp.com/terms/coordin ... nction.htm