RoadmapPhase 1: FoundationsPython Basics for AI
Week 5–8

Python Basics for AI

Get comfortable with Python — the language AI builders use. Learn variables, loops, and functions so you can start automating things.

Skills You'll Learn

Variables and data types
Loops and conditionals
Writing functions

Hands-On Projects

1

Simple calculator app

2

Mad Libs generator with Python

3

Number guessing game

Module Milestone

You can write a Python program with variables, a loop, and a function.

Complete this milestone before moving to the next module.

Module Quiz

Sign in to save your quiz scores and earn badges!

Q1. What will this Python code print? x = 5; print(x * 2)

Q2. What does a 'for loop' do in Python?

Q3. What is a Python function?