Section outline

  • As your code grows, it can become messy. Subprograms (also called Functions or Methods) allow you to group blocks of code together and separate them with an own name. This makes your code modular, easier to read, and allows you to reuse the same code throughout your program without rewriting.