awx

← Blog

Walk-through · 14 November 2026

How to learn Python and Linux with a tutor beside you

Chat on the left, a real terminal on the right. You type; the agent explains.

Most beginners get stuck in the gap between a tutorial and a blank terminal. The tutorial says "run this", the terminal says command not found, and nobody is there to say why.

The awx workbench puts the two side by side. On the left is a chat with an agent. On the right is a terminal on a Linux computer that is yours. You ask, it explains, you type the command yourself, and you see what happens.

Awi the cat agent thinks with a paw on its chin

The layout

The awx workbench: on the left the agent explains how to list files and sort a CSV, on the right a terminal shows the commands and their output
The workbench in the middle of a session. The agent explains Step 4 on the left, and the terminal on the right shows what we typed and what came back. The Tools panel also has Files, Links and Desktop tabs, and "Hide tools" collapses it.

Set up in a minute

  1. Open Workbench and press New chat.
  2. Choose Small. It has 0.5 vCPU and 1 GiB of memory, which is plenty for learning.
  3. Press Start chat. A computer is made for the chat, and the Terminal tab opens on the right.

The computer keeps its files when it goes to sleep, so you can come back tomorrow and carry on.

Tell the agent to teach, not to do

The agent can run commands on the computer for you. When you are learning, that is the wrong help. Say so in your first message:

I am a first-year student learning Python and the Linux
terminal. Guide me one small step at a time and do not run
anything for me. I will type the commands in the Terminal on
the right.

We sent that message on a real awx computer, then followed the agent's steps. The replies below are the agent's own, shortened. We typed every command ourselves, and the output shown is what the terminal printed.

A first session

Step 1: look around and make a folder

Step 1: what do I type to check which Python I have and to make a folder called lab to work in?

Type each one in the Terminal, then press Enter. python3 --version should print something like Python 3.12.3. mkdir lab means "make directory": a directory is just another word for a folder. If it works, it prints nothing. Then type ls to list what is in your folder. You should see lab.

python3 --version
mkdir lab
ls

The terminal printed Python 3.12.3, and ls showed lab.

Step 2: make some data

Step 2: I need a small file of five student names and scores to practise on.

First move into your folder with cd lab. cd means "change directory", and pwd shows where you are. Then type these lines exactly. cat > scores.csv means "put what I type next into a file called scores.csv", and << 'EOF' means "keep reading my lines until I type EOF on a line by itself". A .csv file is a plain text table, with commas between the columns.

cd lab
pwd
cat > scores.csv << 'EOF'
name,score
Ana,82
Ben,67
Chloe,91
Dev,74
Ella,88
EOF
cat scores.csv

The last command printed the header and the five students. pwd printed /home/agent/lab.

Step 3: write your first script

Step 3: how do I write a small Python script that reads scores.csv and prints how many students there are, the average, and who scored best?

Make a Python file, then run it. Type these lines the same way as last time. Python cares about the spaces at the start of lines. They are called indentation, so type them as shown. import csv loads Python's tool for reading CSV files, and csv.DictReader(f) labels each row with the header names.

cat > stats.py << 'EOF'
import csv

with open("scores.csv") as f:
    rows = list(csv.DictReader(f))

total = 0
best_name = ""
best_score = -1

for row in rows:
    score = int(row["score"])
    total = total + score
    if score > best_score:
        best_score = score
        best_name = row["name"]

print("Students:", len(rows))
print("Average:", total / len(rows))
print("Best:", best_name, best_score)
EOF
python3 stats.py

It printed Students: 5, Average: 80.4 and Best: Chloe 91.

Step 4: list the files and sort the data

Step 4: how do I list my files with their sizes, and show the three highest scores straight from the CSV using the terminal?

ls -lh lists files, -l for "long" and -h for sizes people can read. The second command is three small commands joined by |, called a pipe. It sends the output of one command into the next, like a conveyor belt. tail -n +2 skips the header line, sort -t, -k2 -nr sorts by the second comma-separated column, as numbers, biggest first, and head -n 3 keeps the first three lines.

ls -lh
tail -n +2 scores.csv | sort -t, -k2 -nr | head -n 3

The terminal listed scores.csv (49 bytes) and stats.py (385 bytes), then printed Chloe,91, Ella,88 and Ana,82.

Step 5: your turn

Now ask for a hint instead of an answer. For example: "Can you give me a hint, not the answer, for adding a line that prints the lowest score?" Try it yourself, run the script again, and if you get an error, paste it into the chat and read it together. Asking for hints is what makes the chat a tutor and not a shortcut.

The commands from this session

CommandWhat it did
python3 --versionShowed which Python is installed
mkdir, cd, pwd, lsMade a folder, went into it, printed where we are, listed what is there
cat > file << 'EOF'Wrote the lines we typed into a file
catPrinted a file
python3 stats.pyRan the script
ls -lhListed files with readable sizes
tail, sort, head, |Skipped the header, sorted by score, kept the top three

When you get stuck

Cautions

Keep reading

Getting started

Sign in with your Google account, give your name and confirm your email. Then open Workbench, start a chat on a Small computer, and paste the first message from this post.

Open the workbench

Awi the cat agent celebrates with confetti

Awi, signing off.

← All posts