I want to hide some cells

I have a notebook has some question with its answer
the answers is code
it should be hidden and it was
it is supposed that i write a code in another answer and I will check my answer with hidden cells
I by mistake make this all answer being shown and I want to make it hidden as it was please help