Script
noun
say it: “skript” /ˌskrɪpt/
A file of Python code, saved with a .py ending, that you run from top to bottom to get a job done, such as python greet.py.
What is a Python script?
A script is a file of Python code, saved with a .py ending, that you run from top to bottom to get a job done.
# greet.py
name = "Sam"
print("Good morning,", name)
# Run it in a terminal: python greet.py
# Good morning, Sam
In a sentence
- “Her script renames every photo in the folder by date.”
- “He runs the backup script every night from the terminal.”
Level: Novice · More Python terms at this level
Updated