Well now, this is a different story. If you needed assistance and couldn't keep up with the assignments and you sought help and the teacher was aware of it, to admonishment you for that reason is certainly unfair and out of order. If the teacher didn't know about it, he/she would have thought that you just weren't doing the work without good reason.