Atlantis University

School of Computer Science & Technology

Programming Foundations — Labs

Four short, hands-on labs. Open one, keep it beside your editor, and write the code — you learn programming by doing it, not watching it.

Lab 1

Variables & Data Types

≈ 6 min

Create each core type, hit the classic string-vs-number bug, and fix it with a type conversion.

Open →
Lab 2

Control Flow — mini FizzBuzz

≈ 7 min

Combine a loop, the % operator, and an if/elif/else chain — plus the classic ordering bug.

Open →
Lab 3

Functions

≈ 7 min

Write functions that return values, then feed those values straight into decisions.

Open →
Lab 4

Capstone — A Tiny Gradebook

≈ 6 min

Everything at once: a list of dicts, a loop, a function, conditionals and typed math.

Open →
Solutions

Lab Solutions

reference

Worked Python solutions and teaching notes for all four labs.

Open →