~や~(など)
A, B and so on: a non-exhaustive list
N5
N1 や N2 (など) + particle (が / を / に…): gives a few examples; there are other things too
や links nouns to give some examples and implies there are others; you can add など after the last noun, then the particle (が, を, に…). In contrast, と gives a complete list: only the things mentioned. You will see it often in rules and signs in Japan: {手袋|てぶくろ}やマスクなど means things like these, not only those two. Learners use や when there are exactly two items, or try to link verbs and clauses with it. や joins nouns only; for verbs or casual speech use ~とか~とか (N4).
Examples
コンビニでは、おにぎりやパンなどを売っています。
Convenience stores sell rice balls, bread and so on.
寮の近くにスーパーや病院があります。
There's a supermarket, a hospital and other places near the dorm.
作業のときは、手袋やマスクなどをつけてください。
When working, please wear gloves, a mask and so on.
Exercises
1.かばんの中に、財布 携帯などがあります。
2.私の家族は父 母です。二人だけです。