I need to determine whether $[2,4]$ and $\mathbb{R}-\mathbb{Q}$ are open subsets of $\Bbb R$.
For $[2,4]$:
I know for a subset to be open then $\forall x\in V$ $\exists (a,b)$ s.t. $x\in (a,b)\subseteq V$
I'm thinking that there's no open interval (a,b) for which $2\in (a,b) \subseteq V$
Am I thinking about this wrong? I tried asking my professor but he told me to look at the practice problems but I don't even understand the practice problems. I'm having trouble determining whether a set is open or not.