Three lessons: Functions can take input through parameters.
Functions can send output back using return.
Keep functions simple. One task per function. The square function does exactly one thing: compute a square. It doesn't print, doesn't ask for input, doesn't do anything else. This makes it reusable anywhere.