...

/

Moving Input to a Function

Moving Input to a Function

Learn how to ask the user for their name by using a function.

A function and its advantage

Whenever we have commonly used code, it’s a good idea to move it into a function.

This has two advantages:

  1. We don’t keep typing the same code
  2. A single call to
...