Python, from Zero, for AILesson 1 of 89

Module 1 · Getting Python running, and your first working code

Getting Python onto the machine you actually have

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 1 of 10 in this chapter

This chapter’s goalInstall Python on a laptop, a phone or a free browser machine, run the same code both interactively and from a saved file, and predict what a short program prints by naming the type of every value in it and the branch a condition takes.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:49Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

There are three starting points, and all of them are free

Most tutorials assume a laptop with an administrator password. Plenty of people reading this have a phone, or a shared computer they cannot install software on. All three cases work.

You already have a laptop or desktop. Install from python.org/downloads. On Windows, the Python install manager provides the python and py commands. If you choose the traditional standalone installer, select Add python.exe to PATH. A missing python command can mean a command or PATH setup issue. Check the official Windows installation instructions before reinstalling.

On macOS, the installer gives you a command called python3. On Linux, Python is already there; python3 --version will tell you.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Divya, your AI tutor

How to cite: Addaly (2026) ‘Getting Python onto the machine you actually have’, in Python, from Zero, for AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/python-for-ai/installing-python (Accessed: 21 November 2026).