⭐ 0🔥 0🏆 0 pts

Practice

Try any command you have learnt on your own pretend computer, drill the commands until they stick, and look one up in the Command Book.

Practice terminal

A practice PowerShell on the same files as the lessons. Nothing here can touch your real computer, so try anything: make folders, write notes, walk around. Type help for the list of commands.

Command Typer

Type real commands exactly, as fast as you can. Every letter counts, just like in the terminal. Slow at typing? Practise on TypePlay first.

Command 1 of 8 · 0.0s

pwd

Type the command exactly, then press Enter.

The Command Book

Every command from the lessons so far, what it does, and where you learnt it. The Python words (Levels 4 and 5) and the web words (Level 6) come after the commands. Want the commands on paper? Print the PowerShell cheat sheet.

copyalso cp, Copy-Item

Makes a twin of a file. The second name is the twin, or a folder to put it in.

copy notes.txt notes-backup.txt

Lesson 16: Copy, move and rename

git init

Makes this folder a Git project (a repository), with a hidden .git folder for its save points.

git init

Lesson 52: Why save points?

git commit -m

Makes a save point of the picked files, with a note saying what changed.

git commit -m "Add my ideas"

Lesson 53: Your first commit

git switchalso -c

Goes to a branch. With -c it makes a new branch first.

git switch -c dark-mode

Lesson 55: Branches

git merge

Brings a branch's save points into the branch you are on.

git merge dark-mode

Lesson 55: Branches

git pushalso git remote add

Sends your save points to GitHub (on the practice computer, a pretend one).

git push -u origin main

Lesson 56: GitHub and git push

.gitignore

A list of files Git must skip, like secrets and keys. On a real computer, make it in a text editor saved as UTF-8: Windows PowerShell 5.1's > writes a kind of text Git cannot read.

echo secrets.txt > .gitignore

Lesson 57: Secrets stay home

Python words

+ - * / // %

Maths. One slash gives a decimal, two slashes a whole number, and % what is left over.

print(10 // 4)

Lesson 27: Numbers and maths

f"...{name}..."

An f-string: put f before the quotes, and names in curly brackets fill themselves in.

print(f"Hi {name}!")

Lesson 31: Project: Mad Libs

foralso range

Repeats the lines moved in under it, once for each number in a range or each thing in a list.

for i in range(3):

Lesson 36: for loops

while

Repeats while its test is True. Something must change each time, or it never stops.

while lives > 0:

Lesson 37: while loops

[ ] (a list)also append, len

Many values under one name, counted from zero. append adds one to the end.

pets = ["cat", "dog"]

Lesson 38: Lists

defalso return

Makes a function: a recipe written once and used again. return hands an answer back.

def double(n):

Lesson 39: Functions

Web words: HTML, CSS and JavaScript

<h1> … </h1>also h2, p

Tags open and close around words: h1 is the biggest title, p a paragraph.

<h1>Hello, web!</h1>

Lesson 45: HTML tags

<img> and alt

Shows a picture from its path. alt says what it shows, for people who cannot see it.

<img src="images/cat.png" alt="My cat">

Lesson 49: Project: About Me page

DayOneCode is an independent learning site, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic. PowerShell is a trademark of Microsoft; DayOneCode is not made or endorsed by Microsoft.