Here are some examples:
* "Hello, John." - The comma is used to separate the greeting from the name.
* "John, can you help me?" - The comma is used to separate the name from the rest of the sentence.
* "The book was written by John Smith." - No punctuation is needed around the name in this sentence.
Let me know if you have more specific questions about punctuation!