Since you've only been playing for six months, I'm going to guess that the pieces you're learning are not especially long so if that's the case, I'd proceed as follows;
Before you even play a note, read the piece through. Try to hear it in your head. Even if you're not able to hear the pitches very accurately, you'll still be giving yourself a rough idea of the shape of the music, where it goes up, down, stays level or rests, what rhythms you're dealing with, and any surprises such as busy passages, accidentals or anything else.
This just a general reconnaissance mission so don't get too worried about the details. You're just giving yourself a feel for the piece.
Select a tempo that gives you a fighting chance. Now, try playing it through and see how far you get. If the wheels come off completely, collect your thoughts and pick up from somewhere just before the crash scene. Otherwise, stagger on.
Repeat until you've reached the end. Don't get discouraged - this is still essentially reconnaissance.
Congratulate yourself on having started to take on this challenge.
Now assess which section was the most difficult and have a good look at it again. Use a pencil to make notes for yourself, e.g. write some fingering guides, circle a sharp that you forgot about, make whatever marks you need in order to guide you through.
Have a few runs through that section until it's making sense to you. Slow down if necessary but keep the tempo pulse totally regular and steady. You're not perfecting anything yet; you're only improving it and beginning to understand it.
Every now and then, take your hands off the keyboard, read the score and try to hear it in your head. Also try to feel what your fingers would be doing to play it. Absorb what you've learned then try playing it again.
Repeat Step 4 for the next most troublesome passage.
Don't overdo this stage. Your brain will get tired so take a rest when you need to. Resume when you feel mentally refreshed. Whether that's in ten minutes or the next day is up to you. But once you feel you've got the hang of a passage, don't rest on your laurels. Consolidate it by playing it accurately six, ten, fifteen times in a row - whatever works for you.
Bear in mind that this is simply about LEARNING the piece.
Practising and mastering it is a different matter. But before you can do that, you need to become familiar with the material and the steps I've outlined above generally work for me. AFTER I've learned it, I then get on with the business of getting GOOD at it!