Programming & Software course

Python Basics

Write basic Python programs using variables, user input, arithmetic operations, and conditional logic.

10 lessonsabout 70 minutes 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
  • Write small Python programs that use variables, arithmetic, text, and user input
  • Evaluate comparisons and use conditional branches to produce different results
  • Run code interactively or from a saved script and explain what basic statements do

What you'll learn, lesson by lesson

  1. 1What a Program Really IsExplain what a program is in one sentence.
  2. 2Running Python CodeTell a line typed at the prompt from a saved script.
  3. 3Printing and CommentsUse print to show a message and a calculated number.
  4. That's a preview. 7 more lessons follow.

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

    Start this course free
  5. 4Python as a Calculator
  6. 5Naming Values with Variables
  7. 6Text Is a Type Too
  8. 7Asking the User
  9. 8True, False and Comparisons
  10. 9If, Elif and Else
  11. 10When an If Isn't Needed
Inside the app

Not a video. A tutor who teaches you.

Milo explains each idea of Python Basics 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.