N1 や N2や — and (non-exhaustive)Genki
や particleや lists nouns as examples — “A and B (among others)”, unlike と, which gives a complete list.
京都や 奈良へ 行きました。
きょうとや ならへ いきました。
I went to Kyoto and Nara (among other places).
つくえの 上に 本や ノートが あります。
つくえの うえに ほんや ノートが あります。
On the desk there are books, notebooks and so on.
や joins nouns but implies the list is partial (“and so on”), much like 〜たり〜たり does for verbs. Use と for an exhaustive “A and B”.
It is often paired with …など (“…and the like”) at the end of the list.