Reading a pattern

I am new to knitting and this site!
I am knitting a hat and the directions read

First Row: K1, (P1,K1)
Second Row: P1,(K1, P1)

Do I repeat only what is in the () or the whole thing?

Thank you for your help!

Repeat just the directions in parentheses. Sometimes the pattern will tell you how many times to repeat, sometimes it will say repeat to end.

Sounds like ribbing and does it say this for the whole thing? or just a few rows? If its a few rows its for the edge that is more stretchy and if its for all of it you will have a hat this is ribbed all the way. Good luck and hang in there we are all still learning…