Reading a single sentence isn’t difficult for most people, but when you combine thousands of sentences together, reading a long mass of text can be cumbersome. That’s why people divide large amounts of text into parts such as paragraphs and chapters. Programming is no different.
Rather than write code as one large mass of text, programmers typically divide a large program into smaller functions where each function performs a single task. Not only do functions help make a large program easier to understand, but ...