Prove that if $A$ is both open and closed then $A = \mathbb{R}$ also as one suggested let $A \neq \emptyset$
You may use what ever definition of open and closed you would like, just avoid going into metric spaces, haven't covered that topic yet. My question is well essentially how to prove this statement but considering I like to do things myself, I was wondering if anyone had any particular suggestions to help me solve this.
attempted proof: Let $a\in A$ then since $A$ is open there exists an open interval $N(a,\epsilon)$ such that $$a\in N(a,\epsilon)\subset A$$ Then $a$ must be an interior point of $A$, but since $A$ is also closed then $a$ must also be an accumulation or limit point of $A$ as well.
I am going to stop here because I am not sure if this is the right approach here, any suggestions would be greatly appreciated.