Qualifying X country, entered non forcast cloud over the North Downs. Immediately did a 180, whilst broadcasting to the station I had last spoken to, telling them of my predicament. I popped out into clear weather fairly soon after, congratulating myself on my quick thinking. I then realised I hadn't once looked at the artificial horizon or any instruments for that matter. Pure luck I had maintained a level turn and kept straight and level after the turn. Later with more hours under my belt, I experienced the same thing in my home circuit. This time head down and took a radar service which got me onto the approach and I popped out of cloud on finals at 600'. Moral? First time I panicked and was lucky. Second time I was calm, collected and did it by the book. If it goes white outside, look inside and keep calm.