Programming & Software course

Python Objects and Efficient Code

Write object-oriented Python code, analyze algorithm efficiency with Big O notation, and implement fundamental data structures.

13 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
  • You can write basic Python classes, methods, inheritance relationships, and class variables
  • You can estimate algorithm growth, compare searches and sorting approaches, and choose basic data structures for simple tasks
  • You can work with binary numbers, simple ciphers, and cellular automata rules

What you'll learn, lesson by lesson

  1. 1Objects and ClassesWrite a class for a coordinate with x and y set when it is created.
  2. 2Methods and Special MethodsAdd a method that returns the distance between two coordinates.
  3. 3Inheritance and Class VariablesWrite a pet class and a cat subclass that changes how it speaks.
  4. That's a preview. 10 more lessons follow.

    Take all 13 lessons free in the Milo app, with Milo teaching each one.

    Start this course free
  5. 4Measuring How Fast Code Runs
  6. 5Big O: Describing Growth
  7. 6Common Growth Families
  8. 7When Problems Are Too Big to Solve
  9. 8Linear and Binary Search
  10. 9Sorting Algorithms
  11. 10Choosing a Data Structure
  12. 11Binary: How Computers Store Data
  13. 12Secret Messages: Ciphers and Public Keys
  14. 13Cellular Automata
Inside the app

Not a video. A tutor who teaches you.

Milo explains each idea of Python Objects and Efficient Code out loud and on the blackboard, checks you understood, and coaches you when you slip. Lessons take 5 to 10 minutes.

Start free
A Milo lesson: Milo explains an idea and draws it on the blackboard
A quick check in a Milo lesson, answered correctly, with Milo's explanation

More in Programming & Software

Free 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.