Rapper Yg felt inspired to go back to school after listening to music by late hip-hop icon Tupac Shakur.

On Monday (02Feb15), the Who Do You Love hitmaker was one of the panelists at a question and answer session at Los Angeles' Grammy Museum, where the exhibit All Eyez on Me: The Writings of Tupac Shakur opened to the public.

Speaking of the California Love star's lasting influence, Yg revealed that Shakur's music has inspired him to go back to school to complete his education after previously dropping out before graduation.

Yg told the audience, "He (Shakur) was reading all these books, his raps were like poetry and all that, it makes you want to be better - at every level. Because I didn't graduate high school, but now it's like I want to go back to school.

"I was six when Tupac passed... It was like after he passed, I started seeing more of like the posters and all that... When I got older, and started really listening to it (his music), it was like 'Oh, he's really talking about stuff that I relate to'. He's really talking about the black culture... Some people don't have no father figures in their life, some people look at Tupac as their father figure, and they apply that to their life."

Shakur's mother Afeni Shakur was also in attendance at the event, along with the late rapper's cousins, and hip-hop stars Chuck D, Ray Luv, and Money-B.

The Tupac Shakur exhibit runs until 22 April (15).

Shakur died in a drive-by shooting in Las Vegas in 1996.