Python Mastery: Build Web Apps, Automate Tasks & Explore AI
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Python Mastery: Build Web Apps, Automate Tasks & Explore AI
Included with
Ask Coursera
Recommended experience
Recommended experience
What you'll learn
Master Python's core principles, including variables, loops, and control structures.
Build real-world applications using Django, APIs, and Python automation tools.
Create advanced Python projects like a task breakdown tool powered by AI.
Visualize data and interact with CSV, JSON, and online APIs to enhance your coding skills.
Skills you'll gain
Details to know
February 2026
23 assignments
See how employees at top companies are mastering in-demand skills
There are 23 modules in this course
This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course.
In this comprehensive Python course, you will master the core principles of Python programming, covering everything from basic syntax to advanced topics like AI and web development. You'll gain practical experience building web apps, automating tasks, and exploring AI-driven applications, all while learning Python's key features and tools. The course is structured to gradually take you from beginner to advanced levels. In the first modules, you'll learn how to set up your development environment and understand Python's basic concepts, such as variables, data types, and control structures. As the course progresses, you'll dive into object-oriented programming (OOP), working with files, and mastering data structures. You'll also build practical projects like a file organizer tool and an image watermarker, reinforcing your knowledge and honing your coding skills. In the latter half of the course, you will explore more advanced topics, including web development with Django, where you'll create a full-fledged book tracker application. You will also work with real-world APIs, learn to consume online data, and even build AI-powered tools using OpenAI’s API and the Streamlit framework. The course is hands-on, with projects designed to make your learning experience both challenging and rewarding, ensuring that you’re well-prepared for real-world programming tasks. This course is perfect for beginners eager to learn Python, as well as intermediate learners looking to expand their skills. There are no specific prerequisites, but a basic understanding of programming concepts will help you get the most out of the course. It’s ideal for anyone interested in automating tasks, building web applications, or exploring AI and data science with Python. By the end of the course, you will be able to develop fully functional web applications, automate tasks, build and deploy Python-based AI tools, and understand advanced Python features such as OOP, APIs, and data visualization techniques.
In this module, we will provide a comprehensive overview of the course, setting the stage for your Python learning journey. You will gain an understanding of Python’s history, its features, and how it’s applied in various industries. Additionally, we will delve into how Python code is compiled and interpreted, offering insight into the inner workings of this powerful language.
What's included
5 videos1 reading
5 videos•Total 13 minutes
- Course Overview•2 minutes
- Introduction•2 minutes
- What is Python and Where It's Used•3 minutes
- Python Compilation & Interpretation Process•3 minutes
- Bookly Nest Demo - Building a Django Web App•3 minutes
1 reading•Total 10 minutes
- Full Course Resources •10 minutes
In this module, we will guide you through the installation process for Python on both Windows and Mac. We will also show you how to install Visual Studio Code, our preferred code editor, and run your first Python program to confirm that your development environment is fully functional.
What's included
5 videos1 assignment
5 videos•Total 12 minutes
- Windows Users ONLY: Install Python on Windows•3 minutes
- Mac Users ONLY: Install Python on Mac•2 minutes
- Download and Install VS Code•1 minute
- Install Python VS Code Extension Pack•2 minutes
- Running Our First Python Program in VS Code•4 minutes
1 assignment•Total 15 minutes
- Install Python on Windows and Mac - Assessment•15 minutes
In this module, we will dive into the basics of Python variables and data types. You will learn how to work with strings, integers, and floats and how to format strings using Python’s f-Strings for cleaner, more readable code.
What's included
4 videos1 assignment
4 videos•Total 17 minutes
- Declaring Variables in Python•5 minutes
- Data Types - String•5 minutes
- Python f-Strings•3 minutes
- Numbers - Integers and Floats•3 minutes
1 assignment•Total 15 minutes
- Python Variables and Simple Data Types - Assessment•15 minutes
In this module, we will explore the foundational data structure in Python: lists. You’ll learn how to create, modify, and access list elements, as well as how to sort lists and calculate their length, providing you with the tools to work efficiently with this versatile data type.
What's included
3 videos1 assignment
3 videos•Total 17 minutes
- Introduction to Lists - Accessing and Modifying Them•8 minutes
- f-Strings & Individual Values from a List•3 minutes
- Sorting a List and Getting a List Length•7 minutes
1 assignment•Total 15 minutes
- Introduction to Data Structures in Python - Lists - Assessment•15 minutes
In this module, we will expand on lists by exploring how to loop through them and dynamically generate lists using the range function. We’ll also introduce tuples, which are similar to lists but immutable, and explore their use in Python.
What's included
7 videos1 assignment
7 videos•Total 23 minutes
- Lists and Loops - Looping Through a List•4 minutes
- Making a List of Numbers with Loops and the Range Function•6 minutes
- Statistics Functions for Numbers•2 minutes
- Generate Even Numbers with the List and Range•3 minutes
- Important: Code Organization Note•1 minute
- List Comprehension•4 minutes
- Tuples•3 minutes
1 assignment•Total 15 minutes
- Lists - Loops and Tuples - Assessment•15 minutes
In this module, we will cover the foundational concepts of branching in Python using if statements. You will learn how to make decisions in your code and manage complex conditions with logical operators, as well as how to use nested if-statements for advanced decision-making.
What's included
6 videos1 assignment
6 videos•Total 23 minutes
- If Statements and Booleans•7 minutes
- The Elif and the in Keywords•4 minutes
- Hands-on - Using AND and OR Logical Operators•6 minutes
- AND OR Logical Operators•1 minute
- Checking for Inequalities•2 minutes
- Hands-on - Inner If-Statements•4 minutes
1 assignment•Total 15 minutes
- Branching - If Statements - Assessment•15 minutes
In this module, we will introduce dictionaries, a powerful data structure that stores key-value pairs. You will learn how to access, modify, and loop through dictionaries, as well as how to work with more complex, nested dictionaries and lists within dictionaries.
What's included
5 videos1 assignment
5 videos•Total 25 minutes
- Introduction to Dictionaries - Declaring and Accessing Values•6 minutes
- Modifying a Dictionary•5 minutes
- Iterating Through a Dictionary•4 minutes
- Nested Dictionaries and Looping Through Them•7 minutes
- Looping through a Dictionary with a List Inside•4 minutes
1 assignment•Total 15 minutes
- Data Structure - Dictionaries - Assessment•15 minutes
In this module, we will focus on gathering user input and using it to build interactive Python applications. You will learn to use while loops to keep programs running and create fun, practical projects like a simple quiz game and a travel itinerary program.
What's included
6 videos1 assignment
6 videos•Total 37 minutes
- User Input - Introduction•7 minutes
- Hands-on - Odd or Even Number•5 minutes
- While Loops & Simple Quit Program•7 minutes
- Hands-on - Quiz Game•8 minutes
- Removing all Instances of Specific Values from a List•1 minute
- Hands-on - Dream Travel Itinerary Program - Filling a Dictionary with User Input•9 minutes
1 assignment•Total 15 minutes
- User Input and While Loops - Assessment •15 minutes
In this module, we will introduce the concept of functions, which allow you to organize and reuse your code. You will learn how to pass arguments, return values, and document functions using docstrings for clearer, more maintainable code.
What's included
11 videos1 assignment
11 videos•Total 42 minutes
- Functions•4 minutes
- Passing Information to a Function (Parameters)•4 minutes
- Positional and Named Arguments•2 minutes
- Default Values - Parameters•3 minutes
- Return Values from a Function•4 minutes
- Hands-on - Returning an Integer & Intro to Docstring•5 minutes
- Returning a Dictionary from a Function•3 minutes
- Functions - Passing a List as Argument•2 minutes
- Passing an Arbitrary Number of Arguments to a Function•6 minutes
- Introduction to Modules - Importing Specific Functions from a Module•7 minutes
- Using the "as" as an Alias•2 minutes
1 assignment•Total 15 minutes
- Functions - Assessment•15 minutes
In this module, we will delve into Object-Oriented Programming (OOP) with Python. You’ll learn how to create classes, instantiate objects, and extend class functionality using inheritance. Additionally, we will cover method overriding to customize class behaviors.
What's included
13 videos1 assignment
13 videos•Total 75 minutes
- Introduction to OOP in Python - Creating a Class and Instantiating an Object•10 minutes
- The "init" and "str" Methods•9 minutes
- Adding More Methods to the Class•2 minutes
- Setting a Default Value for an Attribute•2 minutes
- Modifying Class Attribute - Directly and with Methods•3 minutes
- Inheritance - Create an Ebook - Child Class•11 minutes
- Overriding Methods•6 minutes
- Creating and Importing From a Module•5 minutes
- The Object Class - Overview•8 minutes
- The Python Standard Library•2 minutes
- Random Module - Random Fruit Hands-on•7 minutes
- Hands-on - Random Fruit with Choice Module Method•4 minutes
- Using Datetime Module•6 minutes
1 assignment•Total 15 minutes
- Classes and OOP - Object Oriented Programming - Assessment•15 minutes
In this module, we will explore how to work with files in Python, including reading from and writing to text files. We’ll also cover handling errors with exceptions and work with JSON files to store structured data for various use cases.
What's included
11 videos1 assignment
11 videos•Total 52 minutes
- Do Amazing Things with Python•1 minute
- The Path Class & Reading a Text File•5 minutes
- Resolving Path - Reading From a Subdirectory with Path•2 minutes
- Path Properties Overview•3 minutes
- Writing to Text File with Path•3 minutes
- Read and Write to File Using the "with" Keyword•4 minutes
- Handling Exceptions•6 minutes
- The "FileNotFound" and "IndexError" Exception Types•4 minutes
- Custom Exception Creation and Handling•8 minutes
- JSON - Reading and Writing to a JSON File•7 minutes
- Hands-On - Writing and Reading - Countries to JSON File•9 minutes
1 assignment•Total 15 minutes
- Writing & Reading Files - Do Useful Tasks with Python - Assessment•15 minutes
In this module, we will walk through the process of building a file organizer tool in Python. This hands-on project will teach you how to automate file management tasks, such as sorting and moving files based on specific conditions.
What's included
1 video1 assignment
1 video•Total 13 minutes
- File Organizer Program•13 minutes
1 assignment•Total 15 minutes
- Hands-On - Build a File Organizer Program - Assessment•15 minutes
In this module, we will introduce virtual environments in Python, which allow you to manage project dependencies separately. You will also learn how to use PIP to install third-party libraries and keep your projects organized.
What's included
2 videos1 assignment
2 videos•Total 11 minutes
- Virtual Environment in Python - Overview•4 minutes
- Setting up Virtual Environment and Installing a Package•7 minutes
1 assignment•Total 15 minutes
- Python Virtual Environment and PIP - Assessment•15 minutes
In this module, we will create an image watermarker tool in Python. You will learn how to apply watermarks to images using popular Python libraries and save the newly generated images, offering a practical use case for working with media files.
What's included
3 videos1 assignment
3 videos•Total 29 minutes
- Watermarker Python Tool•1 minute
- Building an Image Watermarker in Python - Part 1•17 minutes
- Generating the Watermarked Images•11 minutes
1 assignment•Total 15 minutes
- Hands-on - Image Watermarker Tool - Assessment•15 minutes
In this module, we will show you how to consume data from online sources, including APIs. You will learn how to interact with APIs using GET and POST requests, and process the data for use in your own applications.
What's included
5 videos1 assignment
5 videos•Total 35 minutes
- Consuming a JSON API•8 minutes
- GET and POST Methods•5 minutes
- Hands-On - Book Search with the Google Books API - Part 1•11 minutes
- Hands-On - Book Search - Add User Input & Search Term•4 minutes
- Hands-on - Book Search - Showing Book Pagination•7 minutes
1 assignment•Total 15 minutes
- Consuming Online Data - APIs and Online Files and Data sources - Assessment•15 minutes
In this module, we will explore how to use the Matplotlib library to create visual representations of data. You’ll learn how to customize graph styles, add labels, and plot data read from CSV files for effective data analysis.
What's included
8 videos1 assignment
8 videos•Total 50 minutes
- Using Matlibplot Library to Plot Data in a Graph•4 minutes
- Adding Labels to Graph and Changing Plot Style•6 minutes
- Changing Graph Style Randomly•2 minutes
- Hands-on - Expense Tracker with Visualization•12 minutes
- Reading a CSV File - Introduction•6 minutes
- Getting the CSV Header Position - Column's Index•5 minutes
- Reading Data From a CSV Column•4 minutes
- Plotting a Graph with CSV Data•12 minutes
1 assignment•Total 15 minutes
- Plotting Graphs in Python - Assessment•15 minutes
In this module, we will introduce you to AI integration with Python using the OpenAI API. You will learn to build a task breakdown tool with Python and Streamlit, enhancing it with AI to provide intelligent responses based on user input.
What's included
8 videos1 assignment
8 videos•Total 46 minutes
- Task Breakdown Demo•2 minutes
- Python and AI - Building AI-based Applications•1 minute
- Getting the OpenAI API Key•5 minutes
- Setting up OpenAI API Key and Overview•6 minutes
- OpenAI API - ChatCompletion and Prompts - Introduction•7 minutes
- Setting up the Prompt for the Task Breakdown App - Part-1•10 minutes
- Adding User Input - Console-Based Program•7 minutes
- Adding a User Interface with Streamlit Framework•9 minutes
1 assignment•Total 15 minutes
- Python & AI (OpenAI API) & Streamlit - Build a Task Breakdown Tool - Assessment•15 minutes
In this module, we will dive into web development with Django. You will learn to set up a Django project, create database models, and display content on the web. Additionally, we’ll cover styling with Bootstrap and deploying your app to Heroku for public access.
What's included
16 videos1 assignment
16 videos•Total 99 minutes
- The Django Framework - Introduction and Overview•3 minutes
- Creating a Django project & Project Files Overview•5 minutes
- Creating a Database and Running Our web App•4 minutes
- Defining Models and Running Migrations•13 minutes
- Setting up a Super User and Registering a Model with the Admin Site•7 minutes
- Defining Models and Running Migrations•6 minutes
- The Django Shell - Looking at Saved Data•4 minutes
- Mapping URLs and Creating a View and Showing on the Browser•11 minutes
- Modifying our Template and Showing Books•8 minutes
- Installing VS Code Extension for Django Templates•4 minutes
- Create a Base Django HTML Template•3 minutes
- The URL Template Tag•3 minutes
- Show All Genres on the Genre Page•7 minutes
- Adding a Genre URL Template Tag to Base HTML•2 minutes
- Showing All Books Related to a Specific Genre•12 minutes
- Updating the Genre Template and Adding URL Navigation to Base HTML•6 minutes
1 assignment•Total 15 minutes
- Web Development with the Django Framework - Build a Book Tracker Web App - Assessment•15 minutes
In this module, we will expand your Django app by adding user authentication, allowing users to register, log in, and manage books and genres. We will also cover editing book entries and managing user sessions.
What's included
6 videos1 assignment
6 videos•Total 72 minutes
- Adding a Form to Add a Genre•17 minutes
- Adding a Form to Enter a New Book•18 minutes
- Editing a Book Entry and Saving the Changes•11 minutes
- Adding User Authentication and Login•15 minutes
- Log Users Out•4 minutes
- Register Users•9 minutes
1 assignment•Total 15 minutes
- Web Development with the Django Framework - Accounts, Adding Books and Genres - Assessment•15 minutes
In this module, we will focus on restricting access to pages based on user roles and associating specific data with users. We will also implement safer book deletion practices, ensuring that users are prompted with warnings before deleting entries.
What's included
4 videos1 assignment
4 videos•Total 56 minutes
- Restricting Access to Pages•9 minutes
- Connecting Data to Specific User•30 minutes
- Deleting a Book - Abrupt Solution•6 minutes
- Deleting a Book The Right Way with a Warning•12 minutes
1 assignment•Total 15 minutes
- Web Development with the Django Framework - Restricting Access to Pages - Assessment•15 minutes
In this module, we will enhance the design of your Django web app by integrating Bootstrap for responsive styling. You will apply these styles to key pages and finalize the look of your app to ensure a polished user experience.
What's included
4 videos1 assignment
4 videos•Total 26 minutes
- Adding Bootstrap to Our Django Application•10 minutes
- Styling the Index and Login Pages•7 minutes
- Styling the Genres Template•2 minutes
- Finalize Styling All Templates with Bootstrap5•7 minutes
1 assignment•Total 15 minutes
- Web Development with the Django Framework - Styling the Web App - Assessment•15 minutes
In this module, we will guide you through the process of deploying your Django web app to Heroku. You will set up Git, the Heroku CLI, and prepare your project for deployment, making your web app live and accessible to users.
What's included
3 videos1 assignment
3 videos•Total 18 minutes
- Setting up Git, Heroku and the Heroku CLI•4 minutes
- Setting up Our Project for Development - Part 1•5 minutes
- Deploying to Heroku - Web App Live!•9 minutes
1 assignment•Total 15 minutes
- Web Development with the Django Framework - Deploying the Web App to Heroku - Assessment•15 minutes
In this module, we will summarize everything you’ve learned and provide suggestions for further learning. You’ll also gain access to additional resources to continue your Python journey and evaluate the skills you’ve developed throughout the course.
What's included
1 video2 assignments
1 video•Total 2 minutes
- Next Steps•2 minutes
2 assignments•Total 75 minutes
- Full Course Practice Assessment•15 minutes
- Full Course Assessment•60 minutes
Instructor
Why people choose Coursera for their career
Frequently asked questions
Python Mastery is a comprehensive course designed to teach you Python from the ground up, focusing on practical applications in web development, automation, and artificial intelligence (AI). The course is relevant because Python is one of the most popular programming languages today, with widespread use in web development, data science, machine learning, and automation. Mastering Python equips you with the skills needed to build real-world applications and dive into cutting-edge AI technologies.
This course is a deep dive into Python programming, designed to cover a wide range of topics that will make you proficient in various fields, including web development with Django, automation, and AI. Throughout the course, you will not only learn core Python concepts such as variables, loops, and functions, but also practical skills like building web apps, working with APIs, managing files, and using libraries for data visualization and AI. The course progresses from foundational Python knowledge to more advanced applications in technology-driven industries.
Upon completion of this course, you will be able to build full-fledged web applications using Django, automate tasks to improve productivity, and explore AI-driven solutions using Python and the OpenAI API. You will have the practical skills to develop real-world projects, like a book tracker web app, a file organizer tool, and an image watermarker, while also mastering the essentials of Python programming. Additionally, you will be able to integrate data visualization techniques and APIs into your projects, setting the foundation for future learning in AI and web development.
More questions
Financial aid available,
