# 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.

```python
# 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](https://www.ask-codey.com/glossary?category=python&level=1)

Updated: November 19, 2026

## In other subjects

- [Script in JavaScript](https://www.ask-codey.com/glossary/script-javascript)

Source: https://www.ask-codey.com/glossary/script
