Programming and data

Learn Python: what to know and where to start

Python is a general-purpose programming language used for web development, data analysis, automation, scientific computing and AI work. It is widely taught as a first language, so many courses start from zero.

Outcomes

What you will be able to do with Python

  • Write programs using variables, conditions, loops and functions
  • Read and fix error messages
  • Work with files, lists and dictionaries
  • Use a library such as pandas or Flask
  • Share a project others can install and run

Learning path

How to learn Python, in order

  1. Beginner

    Learn the basics

    Learn variables, data types, conditions, loops, functions and reading error messages. You are ready when you can solve small exercises without copying a solution.

  2. Intermediate

    Work with data and libraries

    Use lists, dictionaries, files and packages, then pick up a library for your goal such as pandas for data or Flask for the web. You are ready when you can finish a small project that uses real files or data.

  3. Advanced

    Write maintainable code

    Learn modules, tests, virtual environments, version control and reading other people’s code. You are ready when you can share a project that someone else can install and run.

What Python is used for

The Python Software Foundation groups Python's applications into a few broad areas. Most courses on this page teach one or two of them, so it helps to know which one you want before you choose.

  • Web and internet development, with frameworks such as Django and Flask and libraries such as Requests.
  • Scientific and numeric work, with SciPy for maths and engineering and pandas for data analysis.
  • Education, where Python is used to teach programming.
  • Desktop applications, with toolkits such as Tkinter and Qt.
  • Software development tooling, such as build control and continuous integration.
  • Business applications, such as the Odoo and Tryton platforms.

How to choose a Python course

Start with your goal, because "Python course" covers very different things. A data route needs pandas and some statistics. A web route needs a framework and a database. An AI route needs the numeric libraries first.

Then check three things on each review: the level it starts from, whether you build projects you can show, and whether the credential is one an employer or school recognises. Free courses are a sensible first step if you have not programmed before.

Keep going

Where to go next

The first is the natural next step from this page. The rest follow what you have been reading.

FAQs

Python: common questions

Do I need programming experience before learning Python?

No. Many Python courses start from zero, and the level is stated on each review. If you already program in another language, pick an intermediate course and skip the basics.

Which Python course is best for a complete beginner?

Open the top-rated courses above and read the level and who it is for on each review. A free beginner course is a low-risk way to test whether you enjoy it before you pay for a longer program.

Is Python enough to get a data or AI job on its own?

Rarely. Python is the tool, but data roles also need SQL and statistics, and AI roles need machine learning concepts. The related skills at the end of this page show what courses usually teach alongside it.