A little background on me. I graduated with a degree in statistics, but I am returning to take a few more rigorous mathematics courses in hopes to pursue probability/statistics at a more rigorous level. I am currently having trouble getting comfortable proving that a set is open. My professor has given us some more complex (at least to me) examples, such as proving the set $$ \{f:[0,1] \longrightarrow \mathbb{R}; f \ is \ continuous\} $$ Along with other examples.
I do understand that in order to prove that a set is an open set, you need to prove/show that for each element in that set, there exists an open ball centred around that element that is contained in the set.
However, I would like to start proving sets are open with the most basic of examples (and I have been having trouble finding some online). Would anyone be able to provide some very basic examples of proving that a set is open, so I can gain some comfort with these types of proofs. For example, how would I prove that (a,b) is an open set by showing that for each $x \in (a,b)$, there exists $r>0$ such that $(x-r,x+r) \subset (a,b)$