Usage Note
Ejemplo is the go-to word for 'for example': por ejemplo (abbreviated p. ej.). Unlike English 'example', it also covers the sense of 'model' or 'lesson to follow', as in dar ejemplo ('to set an example'). The phrase a modo de ejemplo is a slightly more formal alternative to por ejemplo.
Examples
"Por ejemplo, puedes usar el metro."
Natural Translation
For example, you can take the subway.

Free starter pack
Building your Spanish vocabulary?
Get the 100 most common Spanish words as a free PDF — one email, no spam.
Related Words
Explore Spanish by topic