Programming & Software course
Python Functions, Loops and Collections
Write modular Python programs using custom functions, control loops, data collections, and basic file handling.
14 lessonsabout 2 hours in allBeginnerFree
Lessons of 5 to 10 minutes, taught by Milo, your AI tutor. In your browser now; phone apps soon.

By the end you can
- Build small Python programs with reusable functions, loops, and common data structures. You can validate basic results, process simple files, import modules, and diagnose straightforward errors
What you'll learn, lesson by lesson
- 1Calling Built-in FunctionsCall len, round and max and say what each returns.
- 2Writing Your Own FunctionDefine a function that takes two numbers and returns their average.
- 3Designing a Function Step by StepWrite two example calls with expected results before writing the body.
- That's a preview. 11 more lessons follow.
Take all 14 lessons free in the Milo app, with Milo teaching each one.
Start this course free - 4Where Variables Live
- 5Checking Code with Tests
- 6For Loops
- 7While Loops
- 8Loop Patterns
- 9Lists
- 10Tuples and Sets
- 11Dictionaries
- 12Reading and Writing Files
- 13When Things Go Wrong
- 14Using Modules and Notebooks
Inside the app
Not a video. A tutor who teaches you.
Milo explains each idea of Python Functions, Loops and Collections out loud and on the blackboard, checks you understood, and coaches you when you slip. Lessons take 5 to 10 minutes.
Start free

More in Programming & Software
See allFree to learn
This course is free. So is Milo's help planning it.
Every course in Milo's library, your growth plan and Milo's weekly check-ins cost nothing. Members, from $5 a month, also get lessons written just for them.
- Can I really start for free?
- Yes. No card needed.
- Can I cancel a membership any time?
- Yes, from your account. You keep it until the end of the month you paid for.
- Where does it work?
- In any browser on a phone, tablet or computer. Phone apps are on the way.



