Functions give you three powers: Reusability. Write code once, use it many times.
Organization. Break big problems into small pieces.
Testing. Check each piece works before combining them. Without functions, a -line program is a nightmare. With functions, it becomes small pieces that each make sense. Professional developers don't write walls of code. They write small, focused functions.