top of page

In this module, we'll talk about methods. We can think about methods as mini-programs that do their own thing based on user input. In our main program, we can call these methods in order to carry out specific functions that we may need to do multiple times. 

Module6

Module6

Watch Now

More on this Module

Methods are also good for organizing your code. When we write a large program, it can be inconvenient so imply write everything down in the main method. So we want to create methods to carry out specific functions that we can call when needed. It makes the code more readable and easier to debug.

Here are some nice practice problems we've designed: 

bottom of page