🧩Script (Programming)
Also known as Script, Script File, Computer Script
A short program that runs straight from its text file, with no build step.
Think of it like
It is like a list of chores on the fridge. Someone reads it and does each job in order.
Example
Jack has 300 photos with messy names. He writes a ten-line Python script that renames them all in two seconds.
Why it matters
Scripts are the fastest way to make a computer do a boring job for you. Many people start coding by writing one.
Definition
Example code
console
$ python rename.py
Renamed 300 files.Common mistake
Key takeaways
- 1Runs from text. No separate build step is needed.
- 2Small jobs. Often one task, done again and again.
- 3Read line by line. An interpreter runs it in order.