why $\mathbb{Q}$ and $\mathbb{Z}$ are zero-dimensional spaces ?
My attempt : Definition of zero-dimensional spaces:
A topological space $(X, \tau)$ is said to be zero-dimensional if there is a basis for the topology consisting of clopen sets
we know that in discrete space all basis for the topology consisting of clopen sets.so here i can said that obviously $\mathbb{Z}$ will be zero-dimensional spaces since $\mathbb{Z}$ induce discrete topology
But im confused about $\mathbb{Q}$ because it is neither closed nor open