🧭 EXPLORER: Python Basics Help Hub
Learn how to code in Python using the chapters below.
This hub supports our ongoing build: EXPLORER: an interactive field log system. Each chapter adds one new skill and upgrades the same program.
This hub supports our ongoing build: EXPLORER: an interactive field log system. Each chapter adds one new skill and upgrades the same program.
✅ Before you ask for help…
- Run your code.
- Read the error line number (if there is one).
- Check brackets, spelling, and indentation.
- Explain what you wanted the code to do.
🎯 Quick jump (chapters)
🧠 Beginner Path (EXPLORER build series)
Each chapter upgrades the same program. Keep your file as you go.
🧰 Extra help (as we build it)
These sections will grow over time. Use them when you want more practice or faster fixes.
⚠️ Common errors & what they usually mean
SyntaxError: Python can’t understand the code you typed (often brackets/quotes/colon).
NameError: you used a variable name Python doesn’t know (spelling/case or not defined yet).
TypeError: you used the wrong type (e.g., adding text to a number).
ValueError: Python understood the type, but the value doesn’t make sense (e.g., trying to turn “hi” into a number).
IndentationError: the spacing at the start of lines doesn’t match what Python expects.
🎮 Mini Practice Hub (Chapter Challenges)
Try the challenge first. Open the solution only after you’ve attempted it.
Chapter 1 – Inputs → Processing → Outputs
Identify the input, processing, and output:
Processing: combining text with a variable
Output:
name = input("Enter your name: ")
greeting = "Welcome " + name
print(greeting)
Show solution
Input:input()Processing: combining text with a variable
Output:
print(greeting)Chapter 2 – print()
Write one line that prints:
Mission started successfully.
Mission started successfully.
Show solution
print("Mission started successfully.")
Chapter 3 – Variables
Fix the bug:
day = 4
print("Day number: " + Day)
Show solution
print("Day number: " + str(day))
Chapter 4 – Data Types
Why does this crash?
temp = "25"
print(temp + 5)
Show solution
temp = int("25")
print(temp + 5)
Chapter 5 – input() & conversion
Fix the input so it can be added numerically:
count = input("Enter sample count: ")
print(count + 1)
Show solution
count = int(input("Enter sample count: "))
print(count + 1)
Chapter 6 – If Statements
Predict the output:
oxygen = 18
if oxygen > 19:
print("Safe")
else:
print("Low oxygen")
Show solution
It prints: Low oxygenChapter 7 – Loops
How many times will this print?
for i in range(3):
print("Logging...")
Show solution
It prints 3 times.Chapter 8 – Lists
What does this print?
samples = ["rock", "water", "soil"]
print(samples[1])
Show solution
It prints: waterChapter 9 – Functions
What is missing?
def greet(name):
print("Hello " + name)
_____ ("Ava")
Show solution
greet("Ava")
Chapter 10 – Debugging
What error type will this cause?
print("Day number: " + 5)