Definition A seperable space $X$ is a topological space which contains a countable subset $A$ dense in $X$. For example, $\mathbb{R}$ is separable as $\mathbb{Q}$ is a countable subset of $\mathbb{R}$ and $\bar{\mathbb{Q}}=\mathbb{R}$.
Now I need to show that a subspace of a separable space is not necessarily a separable one. I guess the subspace of all irrational numbers $I:=\mathbb{R}-\mathbb{Q}\subset \mathbb{R}$ may work it out, but I just don't know how to get a contradiction if $I$ has a countable dense subset. Also it seems vague to me what topology is appropriate for $I$, the one inherited from open intervals or 'left topology' with basis $[a,b)$, or something else...?
Any help would be appreciated! Thanks!