RadarTrek
Home/Courses/Python Basics/Why Python? And How to Run It
Lesson 01 / 9·7 minFree

Why Python? And How to Run It

The language of AI, data, and automation — and why it's the most readable code you'll ever write

Written by the RadarTrek editorial team · June 2026

Python was designed to read like English. Where JavaScript has lots of punctuation ({} () => ;), Python has almost none. This makes it the best first language for understanding what code is actually saying — and the most powerful language for working with AI, data, and automation.

💡

Python is like plain English. JavaScript is like legalese.

Both say the same things, but Python says them in plain language. JavaScript: function greet(name) { return "Hello " + name; } Python: def greet(name): return "Hello " + name. Same function, Python requires less mental parsing. AI assistants generate a lot of Python. When data scientists share notebooks, they use Python. When ML models are published, Python is the interface.

What Python is used for

  • AI and machine learning — TensorFlow, PyTorch, scikit-learn — the major AI frameworks use Python as their main interface, so most AI research and model training code is written in Python.
  • Data analysis — pandas, numpy, matplotlib — data scientists use Python to clean, analyse, and visualise data — especially when the data is too big or the work too repetitive for a spreadsheet.
  • Automation and scripting — Rename 1,000 files, process a CSV, send emails, scrape a website — Python makes these tasks 10-line scripts instead of hours of manual work.
  • Web backends — Django and FastAPI are Python web frameworks. Instagram and Pinterest started on Django.
  • APIs and integrations — Stripe, Twilio, OpenAI, Anthropic — all have official Python SDKs.

Running Python

Three ways to run Python

# 1. Install Python (python.org or brew install python)
python3 --version  # Python 3.13 or newer

# 2. Interactive REPL — type Python, see results immediately
python3
>>> 2 + 2
4
>>> print("Hello")
Hello
>>> exit()

# 3. Run a script file
python3 my_script.py

# 4. Online (no install needed) — replit.com or python.org/console

▶ Your first Python script

1.

Create a file called hello.py

# hello.py
print("Hello, Python!")
print(2 + 2)
print("My name is " + "Python")

Result

Hello, Python!
4
My name is Python
2.

Run it

python3 hello.py

Result

The three lines printed in order
3.

Open the REPL for quick experiments

python3
>>> "python".upper()
>>> len("python")

Result

'PYTHON'
6
→

Try this

Install Python, open the REPL (python3), and type: import this. Press Enter. Read what you see — it's called "The Zen of Python." These 19 aphorisms describe the language's philosophy. "Readability counts" is why Python is the best beginner language.

Lesson quiz

4 questions. Get 3 right to pass. Passing every lesson quiz unlocks the course certificate.

  1. 1. Why does the lesson call Python a good first language?

  2. 2. Which area does the lesson link most strongly with Python?

  3. 3. Which are Python web frameworks?

  4. 4. What is the Python REPL?

RadarTrek Intel — monthly score updates

We track 200+ tools across 35 categories so you don't have to. Score changes, new tools, and new guides — once a month, no spam.