The resistors are making the input on pin 2 and pin 7 low when the button is not pushed. If they were not there, the pins would be floating. A floating pin is NOT the same as pin connected to low. On some types of logic, a floating pin can actually disrupt the operation of the entire chip.
I have hidden you response ... you may not have noticed that we were trying to teach the person to
do some discovery for themselves , rather than some one handing out the answer