Skip to content
← Python for AI/ML · all 50 levels

Modules & import

Level 46 of 50 · Errors, files & modules

Level 46 of 50

Modules & import

use code someone already wrote. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.

📒 Open the cheat sheet
Sana7 cousins, 2 per rickshaw. 3.5 rickshaws?
TeacherRound it up! Python already has that tool. Just import it!
rickshaw.py
import math
print(math.ceil(7 / 2))
Teacherimport math. math.ceil rounds UP. 4 rickshaws!
SanaWhy math dot?
TeacherThe dot means: go inside math, and grab ceil!
rickshaw.py
from math import ceil
print(ceil(9 / 4))
TeacherOr use from, to grab just ceil. No dot needed!

⏸ Pause & predict: what prints?

from math import sqrt
print(math.sqrt(16))

Where this leads

Python is step one. Building AI that ships is the rest.

The diploma takes you from zero to deployed computer vision, LLM and agent projects, with engineers who build them for a living. Already code? The bootcamp does it in three months.