Python for Data and AI
A beginner Python course aimed at data and AI work. Learn the basics, lists and dictionaries, functions, reading files, analysing data with pandas, drawing charts with matplotlib, and sending a request to an AI service. Free to learn, with an optional verified certificate.
What you will learn
- Write small Python programs with variables, decisions and loops
- Store and process information with lists and dictionaries
- Create and reuse functions, and import modules
- Read a CSV file and answer questions about it with pandas
- Draw clear charts with matplotlib
- Send a request to an AI service and read its reply safely
Who is it for? Complete beginners. You need a computer and the free Python installer from python.org (or an online notebook such as Google Colab).
Skills you will gain
PythonData AnalysisPandasData CleaningProgramming Fundamentals
There are 6 modules in this course
Module 1: Python basics3 lessons + quiz
Your first programs: values, decisions and repetition.
- Your first program and variables · 10 min
- Working with numbers and text · 10 min
- Decisions and loops · 11 min
- Graded quiz
Module 2: Lists, dictionaries and files3 lessons + quiz
Store many values together and read data from a file.
- Lists · 10 min
- Dictionaries · 10 min
- Reading and writing files · 10 min
- Graded quiz
Module 3: Functions and modules3 lessons + quiz
Package code so you can reuse it, and borrow code that others wrote.
- Writing functions · 10 min
- Modules, packages and pip · 9 min
- Working with JSON · 8 min
- Graded quiz
Module 4: Data analysis with pandas3 lessons + quiz
Spreadsheet power in code.
- Loading data with pandas · 11 min
- Filter, group and sort · 12 min
- Cleaning messy data · 10 min
- Graded quiz
Module 5: Charts with matplotlib3 lessons + quiz
Show your findings so other people can see them at a glance.
- Your first chart · 10 min
- Choosing the right chart · 8 min
- Making charts clear and honest · 8 min
- Graded quiz
Module 6: Calling an AI service from Python3 lessons + quiz
Connect your program to a language model.
- Web requests and APIs · 10 min
- Keeping API keys safe · 8 min
- Sending a prompt to a model · 11 min
- Graded quiz
Earn a career certificate
Finish all lessons and quizzes, then pass the final exam (15 questions, pass mark 70%, up to 3 tries a day). You earn a certificate with a public ID that anyone can verify. Add it to your profile, resume or LinkedIn.
Frequently asked questions
Is the course really free?
Yes. You can enrol, read every lesson, take every quiz and sit the final exam for free.
How do I earn the certificate?
Finish all lessons, pass every module quiz, then pass the final exam. The verified PDF certificate has a small fee.
Can I learn at my own pace?
Yes. There are no deadlines. Your progress is saved on your account.
Can employers check my certificate?
Yes. Every certificate has an ID and a public verify link. You can also show it on your profile and on LinkedIn.
What if I fail a quiz or the exam?
You can try again. Quizzes have no limit. The final exam allows 3 tries every 24 hours.