Pistachios are fruits (drupes), not nuts.
Why it is true
Technically, they are drupes, which are fruits with a fleshy outer part surrounding a shell with a seed inside, similar to peaches and mangoes.
Source: Botany
Would you rather be asked first?
This is the reading side of the site, so the answer is in the sentence above — that is the whole point of it. Test yourself works the other way round: the question comes on its own, and the fact and the explanation only appear once you have answered.