Back to Courses

Programming with Python

Learn one of the most in-demand programming languages the fun way.

Python is one of the most widely used programming languages, and it is an excellent first language for new programmers. It can be used for everything from video games to data visualization to machine learning.

Right from the start, this course will show you how to use Python to create intricate drawings, coded messages and beautiful data plots. And along the way, you'll learn core programming concepts such as variables, control flow, and simulation.

Interactive
lessons

12

Concepts and
exercises

195+
  1. 1

    Introduction

    Get a sense of what you'll be able to build with Python.

    1. Welcome to Python

      Demystify programs and learn what they actually do.

    2. Drawing in Python

      Start learning Python by making art.

    3. Built-in Functions

      Make your programs more powerful by accessing built-in commands.

  2. 2

    Strings

    Learn how to deal with text in Python

    1. Included with
      Brilliant Premium

      Strings

      Strings are the key to writing programs that communicate with the outside world.

    2. Included with
      Brilliant Premium

      Variables

      Use variables so your programs can effectively deal with data.

    3. Included with
      Brilliant Premium

      String Functions

      Look inside strings and see what they're really made of.

  3. 3

    String Manipulation

    Become a literal wordsmith.

    1. Included with
      Brilliant Premium

      Substrings

      Slice strings to find words inside other words.

    2. Included with
      Brilliant Premium

      The Replace Function

      Pull pieces out of strings and insert new strings in their place.

  4. 4

    Loops, Functions and Arguments

    Explore some of Python's most powerful tools.

    1. Included with
      Brilliant Premium

      The For Loop

      Easily make shapes like curves and stars by writing code that repeats.

    2. Included with
      Brilliant Premium

      Custom Functions

      Build code that's easy to reuse by writing functions.

    3. Included with
      Brilliant Premium

      The Range Function

      Use the power of variables to make more creative outputs.

    4. Included with
      Brilliant Premium

      Functions with Arguments

      Make your functions more powerful functions by adding inputs.