LivingBots

Mission 4: Python A — November's Lumber Camp

November bot

Welcome to the Lumber Camp!

I'm November, the lumberjack bot. I've been to every planet, seen every terrain, and chopped through every challenge. Now I'll teach you Python fundamentals through 10 rugged tasks. Stay focused, work hard, and you'll master the basics. Let's get to work!

Your Progress

0 / 10 completed
Use VS Code (Mission 3) Use Trinket (Python 3)

Mission 4 Terms

f-string
A formatted string literal using f"..." that allows {variable} insertion.
String Method
Built-in functions on strings like .upper(), .lower(), .replace().
List
An ordered, mutable collection using square brackets: [1, 2, 3].
Index
Position in a list/string. Python uses 0-based indexing.
Conditional
if/elif/else statements that execute code based on conditions.
For Loop
Iterates over a sequence: for item in list:
Accumulator
A variable that collects/sums values in a loop.
List Comprehension
Compact syntax to create lists: [x for x in list if condition]
Dictionary
Key-value pairs using curly braces: {"key": "value"}.
Module
A file containing Python code you can import and use.
Exception
An error that can be caught with try/except blocks.
File I/O
Reading from and writing to files using open().