From the course: Intermediate Python for Non-Programmers
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Methods - Python Tutorial
From the course: Intermediate Python for Non-Programmers
Solution: Methods
- [Instructor] Well, welcome to your first CoderPad challenge here. This is my solution to this particular challenge, and yours might be different than mine. In programming, there's so many different ways to solve problems that we have, and that's no different here. So what you have done to solve this particular challenge may be different from what I did, but you may enjoy seeing the way that I did it. If you got stuck, this might help you, but just know, if you didn't do it the way I did it, but you found a different way, that's going to be totally fine. So let's go ahead and get started. What we're trying to do is add a method to the Student class that will give the students' average test score. We have a list of their test scores, and we just need to be able to find the average or the mean of that. So you'll notice here down below on the bottom right hand corner where we have test code, it's telling us there's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.