1. With a period after each letter: e.g.
This is the most common way to punctuate it.
2. Without any punctuation: eg
This is less common, but still acceptable, especially in informal writing.
Here's how to use it in a sentence:
* "I like to eat fruit, e.g., apples, bananas, and oranges."
* "There are many different types of vegetables, eg, carrots, broccoli, and spinach."
Important Note: "e.g." is an abbreviation for the Latin phrase "exempli gratia," which means "for example." It's always used to introduce examples.