Phase 0: How Computers Actually Work · ~40 minutes · Terminal · Python · Node.js
Set Up Your Computer for the Labs
You set this up once. After that, every lab starts with one command and ends with another.
Real-world application: Can open a terminal, install a tool, confirm it works by its version number, and read a failed check instead of giving up on it
What you will learn
- Open a terminal and run a command in it
- Install Python 3.11 or newer, Node.js 18 or newer and uv, and confirm each by its version number
- Connect the DeVenture command-line tool to your account with a token
- Start a lab, check it and record the result, all from your own terminal
Introduction
- Type: Build
- Languages: Python, your terminal
- Prerequisites: Reading a Program: Syntax, Interpreters, and Why Errors Happen
- Time: ~40 minutes, most of it waiting for downloads
Objective
Learning objectives
- Open a terminal and run a command in it
- Install Python 3.11 or newer, Node.js 18 or newer and uv, and confirm each one by its version number
- Connect the DeVenture command-line tool to your account with a token
- Start a lab, check it and record the result, all from your own terminal
What you'll do
So far every program in this course ran on the lesson page. From the next phase on, most labs run on your own computer, in files you keep. This lesson gets your computer ready for that, one step at a time, and ends with a tiny lab that proves it worked.
- Open a terminal, the window where you type commands.
- Install three tools: Python, Node.js and uv.
- Connect your DeVenture account to your terminal with a token.
- Start the lab, put your name in one file, and run the check that records it.
You're done when npx deventure verify says All checks passed. and Recorded against your account.
The Problem
The programs you write in this course have to run somewhere. On the lesson page, the website runs them for you, and it can't keep them: close the tab and your work is gone. Real programs live in files on a computer, and something on that computer runs them.
Labs work the same way. You get a folder of files, you change them, and a program on your computer checks your work and tells your account it passed. For that you need three things installed and a way to type commands. Nobody is born knowing how to do this. It is a one-time job, and the rest of this lesson walks you through it.
The terminal: typing commands instead of clicking
A terminal is a window where you type an instruction, press Return, and the computer carries it out and prints the result. Everything you can do with a mouse you can also do here, and some things, like running a Python file, you can only do here.
- On a Mac: press Cmd + Space, type
Terminal, and press Return. - On Windows: open the Start menu, type
Terminal (or PowerShell on older versions), and press Return.
You'll see a line ending in %, $ or >. That's the prompt: the terminal waiting for you. Type this and press Return:
echo hello
It prints hello. You just ran your first command. In this course, a grey box with a command in it always means "type this into your terminal and press Return". Don't type the prompt symbol itself.
You type python3 --version into your terminal and press Return. It prints zsh: command not found: python3. What does that tell you?
"Command not found" means exactly that: the terminal looked for a program with that name and there wasn't one. Either it isn't installed, or it was installed after this terminal window opened. A terminal only looks for programs when it starts, so the fix is often just to open a new one.
Three tools, and what each one is for
| Tool | What it does in this course | How you check it's there |
|---|
| Python 3.11 or newer | Runs the Python files you write | python3 --version |
| Node.js 18 or newer | Runs npx, which runs the DeVenture command-line tool | node --version |
| uv | Installs the Python libraries later labs use, like pandas | uv --version |
A version number like 3.12.4 tells you which release of a tool you have. Asking a tool for its version is the quickest way to prove it's installed and that your terminal can find it.
This lesson is free
You've read the first 3 sections. The rest covers Build, Check Yourself, Key Terms & Next. A free account opens all of it, with its practice questions and its lab. No card.
Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card.
Browse all courses · View pricing · DeVenture Academy