When you're learning something new, you'll probably end up needing help. Learning to code isn't simple, there are many things to learn! Every programmer has gotten stuck tons of times, so they know how you feel, and would be more than happy to help you!
Sometimes, looking at code for hours can make you tired and/or frustrated. When this happens, it's best to take a break so your eyes and brain can rest. I've often found that by doing this I feel more motivated to continue on. Also, if I'm stuck, I have usually been able to figure out what the problem was after coming back to it later!