Transcript for Chance the Rapper on how his use of technology was instrumental to his success
Reporter: In a matter of moments one of the biggest musicians in the world is about to crash this fifth grade classroom. I just walk in front of this. ??? Reporter: Known for hits like "No problem." And collaborations like "I'm the one" chancellor Bennett known as chance the rapper at just 24 is on fortune's 40 under 40 list making him the only streaming-only musician to win a grammy. I claim this victory in the name of the lord. Let's go. Reporter: Today he's on a different type of stage. Hey. Are you enjoying this day? Is this a fun day so far? Yeah. It's crazy. I've been doing a lot of stuff like this this year. You guys like this stuff, coding? Reporter: Using his voice to emphasize thealue of technology like coding. For me, coding is one of the main kind of cheat codes or finesses to get further in the industry or further into what you want to do, right? Reporter: Coding is a skill used across all industries and used for jobs in app and software development which are growing at a rate faster than any other occupation. When did you start? Just now. Just now? Get these two a job. Can we get these two a job at Google? Reporter: While the graduation rate for Chicago public schools has risen over the last decade, it still remains below the national average. What do you think of coding? It would be good for us to do it. So I would do what he tells us to do because it can lead to a big thing for us. We need it. Reporter: For chance, technology has been instrumental to his success. He bypassed the traditional route of signing to a record label opting to release his music directly to listeners on soundcloudnd YouTube. You don't have to rely on another gatekeeper, technology is the access to your fans. I don't know if I'm breaking a big industry secret right now, but most people that are signed don't know where their fans live or how many plays they got on iTunes or the demographics for, you know, how many males or females listen to their music. The type of metrics that they are providing to me allowed me to cater specifically to people that I knew were listening and know what time was the best time of day to drop my music. Reporter: What is the best time of day? Those are industry secrets right now. A lot of people don't know that. Reporter: Music recording programs have helped chance improve his sound. Choose any song and walk me through specifically how that one song is better because of technology. I got a great one. One of the cool things about "Coloring book" is that song "All we got." ??? You must have lost your marbles ??? And summer friends. There's these things called harmonic engines within a recording program. When you record your vocals, you use this harmonic program and it adds harmony to your voice. ??? Reporter: You don't have to have money and a huge amount of people in the recording studio with you. I mean, you could be doing this in your basement right now essentially. For sure. Reporter: Today it's also given him a platform to pay it forward through his charity social works that he co-founded with his lifelong best friend Justin cupping hnningham. What's your nickname for him? J money. He's J euros. Because he's international. Reporter: Together with Google, they're donating $1.5 million to the public schools in chance's home town of Chicago, in areas he says need it the most. You got your own like computer. Do you do coding on your computer? Anywhere you have a computer, you can do coding. Reporter: Justin Steele is a principle at google.org, leading the effort. How important is coding to these students? It's incredqbly important. The research says 65% of these students are going to be in different careers that don't even exist by the time they hit the job market. By teaching them coding skills they cannot just be creators of the content but creators of the platforms and the technology underneath it, that's really powerful. Mr. Chance the rapper. Reporter: We saw firsthand the excitement that a chance encounter generates. When your students think of chance the rapper, what does he mean to them? I would say he means hope. He means opportunity. Hello, Avery. Reporter: They see someone that looks like them. That's great. Reporter: Came up the same way that they did. They can see what the possibility would be with someone who is coming through Chicago public schools. Reporter: Chance says his visit doesn't just impact the kids in this class but future generations, too. Kanye west, also a chicagoan, I heard came to your school when you were a kid. Yeah. Disclosure. I wasn't there when Kanye came to my school. Reporter: You heard about it. Yeah, before I got there. Anderformed in our auditorium. That's still a big deal to me. Just because he was there where I went to school. So I think it's awesome to be here today just because there's some kids, I can guarantee, in the auditorium that will grow up to be in the same profession I'm in. Reporter: Rebecca Jarvis, Chicago, Illinois.
This transcript has been automatically generated and may not be 100% accurate.