• New
  • Free
  • Beginner
  • Text, code and quiz

Python for AI: The Essentials

The Python you actually need before machine learning: values, lists, dictionaries, functions and loops, learned by running code in every lesson.

Level
Beginner
Study time
50m
Chapters
2
Lessons
5
Quizzes
1

Created by ReLU Learning Team
Courses by the ReLU Learning team · Last updated October 2026

About this course

Almost every AI tool you will use is driven from Python. This course teaches the small part of the language that does most of the work, with no setup: every example runs right here in the lesson, and you can change it and run it again.

By the end you will read and write the kind of code that the machine learning courses on ReLU Learning build on.

What you will be able to do

  • Store and change data with lists and dictionaries
  • Write your own functions and loops
  • Transform data in one line with comprehensions
  • Read the Python used in machine learning tutorials

What you need first

  • None: this is a first course

Course content

2 chapters · 5 lessons · 1 quiz

1. Getting comfortable with Python

3 lessons · 33m

2. Working with data

2 lessons · 17m
  • TextComprehensions and sorting12m
  • QuizCheck your understanding5m

About the instructor

ReLU Learning TeamCourses by the ReLU Learning team
  • 4 courses
  • 1 learner

Hands-on courses in Python, machine learning and AI, written so that every idea is something you can run.