No pupil enrolled at a State primary school shall be required to attend or take part in any such instruction or observances if any parent or guardian of the pupil does not wish the pupil to take part therein and makes his or her wishes known in writing to the principal of the school.