Start here

Python essentials for analysts

Learn the Python you need before pandas: data types and mutability, functions, comprehensions, exceptions, modules and packages.

  • 5 lessons
  • About 32 min reading
  • Beginner
  • Updated 13 Nov 2026

After this course you can

  • Use Python's core types and know which can change in place
  • Write functions with default, keyword and variable arguments
  • Build lists, dicts and sets with comprehensions
  • Handle errors with try, except and finally
  • Split code into modules and install packages in a virtual environment

Before you start: nothing: this is the starting point. You only need to be able to install Python and type commands.

Lessons

Know it, or think you know it?

Take a free mock interview on Python essentials for analysts for Data Analyst: 3 questions, a score and feedback on each, in about 10 minutes.