Overview - Why input makes scripts interactive
What is it?
Input in scripts means the script asks the user to type something while it is running. This makes the script interactive because it waits for the user to respond before continuing. Without input, scripts just run from start to finish without stopping. Input lets scripts change what they do based on what the user types.
Why it matters
Input exists to make scripts flexible and responsive. Without input, scripts would be like machines that only do one fixed job. Input lets scripts ask questions, get choices, or receive data from users, making them useful for many tasks. Without input, users would have to change the script code every time they want a different result.
Where it fits
Before learning about input, you should know how to write basic scripts and run commands. After input, you can learn about variables, conditionals, and loops to make scripts that react to user answers. Input is a key step toward making scripts that feel like simple programs.