Rapper Kendrick Lamar swapped the stage for the classroom on Friday (10May13) after taking over a school in Rhode Island to serve as a guest principle.

The hip-hop star headed to Mount Pleasant High School in Providence to meet with students as part of the U.S. Get Schooled campaign, which encourages kids to keep studying and improve their class attendance in a bid to win a day with a celebrity.

Lamar is the latest famous face to participate in the programme, and shared his words of wisdom with the children at a school-wide assembly.

He told them, "Without education you don't have anything. My teachers were great positive influences in my life. My middle school English teacher was probably the reason I became a rapper. He used to encourage me to write poetry and would challenge me, which helped me improve my vocabulary and made me enjoy writing."

The visit was particularly special for Lamar - he was the first person in his family to graduate from high school.

Fellow rapper Big Sean and R&B singer Ne-Yo have also previously taken on headmaster duties for a day for the Get Schooled campaign.