What is "community service"?
Answer from a Native speaker
"Community service" is a non-paying job performed by a person or group of people to benefit the community that they live in. It is different from volunteering because it is not usually performed voluntarily. In this case, he did "community service" so that he would not be expelled from school. Generally community service is given to people as an alternative to being sent to prison or punished in some other way. Ex: You can either do community service or pay the fine. Ex: My friends and I have to do community service for a school project.