# Expanded spell lists and when you can choose them

In D&D 5e, for the expanded spell list of the warlock granted by their patron, I can choose from those spells or the spell list for the warlock.

So my question is for the expanded spells, do you get to choose those spells when you are the level they are listed under (i.e. 1st through 5th) or do you get to choose those spells when your spell slots are the level they refer to?