LivingBots

Mission 6: Python C — Kilo's Dual Challenge

Kilo bot

Welcome to the Dual Challenge!

I'm Kilo — two heads are better than one! One side thinks in circles, the other in squares. When both personalities collaborate, we solve the toughest problems. These 10 advanced tasks will challenge you to think from multiple angles. Keep a level head and we'll conquer them together!

Your Progress

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

Mission 6 Terms

os module
Python module for operating system interactions (files, folders).
os.path.isdir()
Check if a path is an existing directory.
os.mkdir()
Create a new directory.
Default Parameter
Function parameter with a pre-set value if not provided.
Return Value
The value a function sends back using return.
math.ceil()
Round a number UP to the next integer.
Docstring
Triple-quoted string documenting a module/function.
__doc__
Special attribute containing the docstring.
random.choice()
Pick a random element from a sequence.
Type Conversion
Changing data from one type to another (str, int, float).
try/except/finally
Error handling with guaranteed cleanup code.
Format String
f-strings or .format() for inserting values into strings.