Keep the useful bits, human.
Beginner field notes
- A file holds content. A folder groups files and other folders so you can find a project’s pieces.
- In human-lab/notes/plan.txt, plan.txt is inside notes, and notes is inside human-lab. The folder containing an item is its parent.
- Check the full filename and extension. Changing a name from plan.txt to plan.py alone does not rewrite its contents into Python.
See a worked example
Read a small project tree
One reviewed sample, shared across levels. Nothing here runs on your computer.
Example review recorded 2026-10-07 · version 1.
human-lab/
hello.py
notes/
plan.txthello.py is inside human-lab.
plan.txt is inside notes, which is inside human-lab.The indentation shows containment. The trailing slash marks folders in this illustration. No terminal command is being run.
Sources for this sampleVisual
The reviewed description and complete diagram source are available here.
More of this diagram is available inside its frame. Focus the frame and use the arrow keys to pan.
Read the complete diagram source
This is the source for the reviewed diagram, not a command to run.
flowchart TD
P["human-lab folder"] --> S["hello.py file"]
P --> N["notes folder"]
N --> T["plan.txt file"] Full explanation and primary sources
Reviewed explanation
A file is a named item that stores content, such as a picture or the text of a program. A folder, also called a directory, groups files and other folders. A project can be as small as one folder containing one source file. You can inspect it in Finder, File Explorer, or your system’s file manager before learning any terminal commands.
Keep an experiment separate from existing work. You can create a new folder named human-lab inside your own Documents folder using the file manager. This lesson does not create, move, or delete anything on your computer. The tree below is an example of what a small project could contain, not a claim that those files already exist.
A filename may include an extension, such as .py for a Python source file or .txt for plain text. The extension helps tools choose how to handle the file; renaming an extension alone does not translate its contents. Pay attention to the complete name when saving your first program.
Source collection
- MDN: Dealing with files
Used in: Quick notes · Worked example · Lesson text
Project folders, nested files and folders, full filenames/extensions, capitalization, and relative references in HTML.
File-manager navigation, organizing project folders, filenames/extensions, and nested file structures.
- MDN: Code editors
Used in: Quick notes · Worked example · Lesson text
Plain-text source editing, syntax highlighting, opening source files and editor language features.
Source code is stored as plain text and should be handled with an editor that preserves plain text.
Notes AI source review · 2026-10-17
AI source comparison recorded 2026-10-07. Human learner validation is pending.
Quick quiz · one question
Find the file and its immediate folder
Sample scenario. Original synthetic tree only. Slashes show containment and folders have explicit folder entries. These files are not read from or created on your computer.
- Project root
/human-lab/- File in the tree
hello.py- Folder in the tree
notes/- File in the tree
notes/plan.txt- Inspect this entry
notes/plan.txt
In this project tree, what kind of entry is notes/plan.txt, and which folder directly contains it?
Why this answer?
Answers stay on this device.
Sources and exercise scope
- MDN: Dealing with files
Nested project folders, file names and extensions, and relative file references.
Original synthetic exercise. AI comparison against primary documentation recorded on 2026-10-08; the references above state their scope. Human learner validation has not been run. A result here records this attempt; it does not establish mastery.
Follow this learning pathLesson 1 of 8
From project files to a small program
Save or adjust this lesson
Make this lesson yours
Save it for later, or tell your robot what would help.
This correction stays on this browser. Browse all concepts if the topic is missing.
Familiarity is your own assessment. To use it in your coding tool, download your updated learning profile.
Familiarity and lesson feedback are saved on this browser. They do not sync to your account or coding tool.