VOOZH about

URL: https://www.coursera.org/learn/packt-python-mastery-build-web-apps-automate-tasks-explore-ai-lcsbb

⇱ Python Mastery: Build Web Apps, Automate Tasks & Explore AI | Coursera


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

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

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.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

February 2026

Assessments

23 assignments

Taught in English

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 videosTotal 13 minutes
  • Course Overview2 minutes
  • Introduction2 minutes
  • What is Python and Where It's Used3 minutes
  • Python Compilation & Interpretation Process3 minutes
  • Bookly Nest Demo - Building a Django Web App3 minutes
1 readingTotal 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 videosTotal 12 minutes
  • Windows Users ONLY: Install Python on Windows3 minutes
  • Mac Users ONLY: Install Python on Mac2 minutes
  • Download and Install VS Code1 minute
  • Install Python VS Code Extension Pack2 minutes
  • Running Our First Python Program in VS Code4 minutes
1 assignmentTotal 15 minutes
  • Install Python on Windows and Mac - Assessment15 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 videosTotal 17 minutes
  • Declaring Variables in Python5 minutes
  • Data Types - String5 minutes
  • Python f-Strings3 minutes
  • Numbers - Integers and Floats3 minutes
1 assignmentTotal 15 minutes
  • Python Variables and Simple Data Types - Assessment15 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 videosTotal 17 minutes
  • Introduction to Lists - Accessing and Modifying Them8 minutes
  • f-Strings & Individual Values from a List3 minutes
  • Sorting a List and Getting a List Length7 minutes
1 assignmentTotal 15 minutes
  • Introduction to Data Structures in Python - Lists - Assessment15 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 videosTotal 23 minutes
  • Lists and Loops - Looping Through a List4 minutes
  • Making a List of Numbers with Loops and the Range Function6 minutes
  • Statistics Functions for Numbers2 minutes
  • Generate Even Numbers with the List and Range3 minutes
  • Important: Code Organization Note1 minute
  • List Comprehension4 minutes
  • Tuples3 minutes
1 assignmentTotal 15 minutes
  • Lists - Loops and Tuples - Assessment15 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 videosTotal 23 minutes
  • If Statements and Booleans7 minutes
  • The Elif and the in Keywords4 minutes
  • Hands-on - Using AND and OR Logical Operators6 minutes
  • AND OR Logical Operators1 minute
  • Checking for Inequalities2 minutes
  • Hands-on - Inner If-Statements4 minutes
1 assignmentTotal 15 minutes
  • Branching - If Statements - Assessment15 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 videosTotal 25 minutes
  • Introduction to Dictionaries - Declaring and Accessing Values6 minutes
  • Modifying a Dictionary5 minutes
  • Iterating Through a Dictionary4 minutes
  • Nested Dictionaries and Looping Through Them7 minutes
  • Looping through a Dictionary with a List Inside4 minutes
1 assignmentTotal 15 minutes
  • Data Structure - Dictionaries - Assessment15 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 videosTotal 37 minutes
  • User Input - Introduction7 minutes
  • Hands-on - Odd or Even Number5 minutes
  • While Loops & Simple Quit Program7 minutes
  • Hands-on - Quiz Game8 minutes
  • Removing all Instances of Specific Values from a List1 minute
  • Hands-on - Dream Travel Itinerary Program - Filling a Dictionary with User Input9 minutes
1 assignmentTotal 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 videosTotal 42 minutes
  • Functions4 minutes
  • Passing Information to a Function (Parameters)4 minutes
  • Positional and Named Arguments2 minutes
  • Default Values - Parameters3 minutes
  • Return Values from a Function4 minutes
  • Hands-on - Returning an Integer & Intro to Docstring5 minutes
  • Returning a Dictionary from a Function3 minutes
  • Functions - Passing a List as Argument2 minutes
  • Passing an Arbitrary Number of Arguments to a Function6 minutes
  • Introduction to Modules - Importing Specific Functions from a Module7 minutes
  • Using the "as" as an Alias2 minutes
1 assignmentTotal 15 minutes
  • Functions - Assessment15 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 videosTotal 75 minutes
  • Introduction to OOP in Python - Creating a Class and Instantiating an Object10 minutes
  • The "init" and "str" Methods9 minutes
  • Adding More Methods to the Class2 minutes
  • Setting a Default Value for an Attribute2 minutes
  • Modifying Class Attribute - Directly and with Methods3 minutes
  • Inheritance - Create an Ebook - Child Class11 minutes
  • Overriding Methods6 minutes
  • Creating and Importing From a Module5 minutes
  • The Object Class - Overview8 minutes
  • The Python Standard Library2 minutes
  • Random Module - Random Fruit Hands-on7 minutes
  • Hands-on - Random Fruit with Choice Module Method4 minutes
  • Using Datetime Module6 minutes
1 assignmentTotal 15 minutes
  • Classes and OOP - Object Oriented Programming - Assessment15 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 videosTotal 52 minutes
  • Do Amazing Things with Python1 minute
  • The Path Class & Reading a Text File5 minutes
  • Resolving Path - Reading From a Subdirectory with Path2 minutes
  • Path Properties Overview3 minutes
  • Writing to Text File with Path3 minutes
  • Read and Write to File Using the "with" Keyword4 minutes
  • Handling Exceptions6 minutes
  • The "FileNotFound" and "IndexError" Exception Types4 minutes
  • Custom Exception Creation and Handling8 minutes
  • JSON - Reading and Writing to a JSON File7 minutes
  • Hands-On - Writing and Reading - Countries to JSON File9 minutes
1 assignmentTotal 15 minutes
  • Writing & Reading Files - Do Useful Tasks with Python - Assessment15 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 videoTotal 13 minutes
  • File Organizer Program13 minutes
1 assignmentTotal 15 minutes
  • Hands-On - Build a File Organizer Program - Assessment15 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 videosTotal 11 minutes
  • Virtual Environment in Python - Overview4 minutes
  • Setting up Virtual Environment and Installing a Package7 minutes
1 assignmentTotal 15 minutes
  • Python Virtual Environment and PIP - Assessment15 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 videosTotal 29 minutes
  • Watermarker Python Tool1 minute
  • Building an Image Watermarker in Python - Part 117 minutes
  • Generating the Watermarked Images11 minutes
1 assignmentTotal 15 minutes
  • Hands-on - Image Watermarker Tool - Assessment15 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 videosTotal 35 minutes
  • Consuming a JSON API8 minutes
  • GET and POST Methods5 minutes
  • Hands-On - Book Search with the Google Books API - Part 111 minutes
  • Hands-On - Book Search - Add User Input & Search Term4 minutes
  • Hands-on - Book Search - Showing Book Pagination7 minutes
1 assignmentTotal 15 minutes
  • Consuming Online Data - APIs and Online Files and Data sources - Assessment15 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 videosTotal 50 minutes
  • Using Matlibplot Library to Plot Data in a Graph4 minutes
  • Adding Labels to Graph and Changing Plot Style6 minutes
  • Changing Graph Style Randomly2 minutes
  • Hands-on - Expense Tracker with Visualization12 minutes
  • Reading a CSV File - Introduction6 minutes
  • Getting the CSV Header Position - Column's Index5 minutes
  • Reading Data From a CSV Column4 minutes
  • Plotting a Graph with CSV Data12 minutes
1 assignmentTotal 15 minutes
  • Plotting Graphs in Python - Assessment15 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 videosTotal 46 minutes
  • Task Breakdown Demo2 minutes
  • Python and AI - Building AI-based Applications1 minute
  • Getting the OpenAI API Key5 minutes
  • Setting up OpenAI API Key and Overview6 minutes
  • OpenAI API - ChatCompletion and Prompts - Introduction7 minutes
  • Setting up the Prompt for the Task Breakdown App - Part-110 minutes
  • Adding User Input - Console-Based Program7 minutes
  • Adding a User Interface with Streamlit Framework9 minutes
1 assignmentTotal 15 minutes
  • Python & AI (OpenAI API) & Streamlit - Build a Task Breakdown Tool - Assessment15 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 videosTotal 99 minutes
  • The Django Framework - Introduction and Overview3 minutes
  • Creating a Django project & Project Files Overview5 minutes
  • Creating a Database and Running Our web App4 minutes
  • Defining Models and Running Migrations13 minutes
  • Setting up a Super User and Registering a Model with the Admin Site7 minutes
  • Defining Models and Running Migrations6 minutes
  • The Django Shell - Looking at Saved Data4 minutes
  • Mapping URLs and Creating a View and Showing on the Browser11 minutes
  • Modifying our Template and Showing Books8 minutes
  • Installing VS Code Extension for Django Templates4 minutes
  • Create a Base Django HTML Template3 minutes
  • The URL Template Tag3 minutes
  • Show All Genres on the Genre Page7 minutes
  • Adding a Genre URL Template Tag to Base HTML2 minutes
  • Showing All Books Related to a Specific Genre12 minutes
  • Updating the Genre Template and Adding URL Navigation to Base HTML6 minutes
1 assignmentTotal 15 minutes
  • Web Development with the Django Framework - Build a Book Tracker Web App - Assessment15 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 videosTotal 72 minutes
  • Adding a Form to Add a Genre17 minutes
  • Adding a Form to Enter a New Book18 minutes
  • Editing a Book Entry and Saving the Changes11 minutes
  • Adding User Authentication and Login15 minutes
  • Log Users Out4 minutes
  • Register Users9 minutes
1 assignmentTotal 15 minutes
  • Web Development with the Django Framework - Accounts, Adding Books and Genres - Assessment15 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 videosTotal 56 minutes
  • Restricting Access to Pages9 minutes
  • Connecting Data to Specific User30 minutes
  • Deleting a Book - Abrupt Solution6 minutes
  • Deleting a Book The Right Way with a Warning12 minutes
1 assignmentTotal 15 minutes
  • Web Development with the Django Framework - Restricting Access to Pages - Assessment15 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 videosTotal 26 minutes
  • Adding Bootstrap to Our Django Application10 minutes
  • Styling the Index and Login Pages7 minutes
  • Styling the Genres Template2 minutes
  • Finalize Styling All Templates with Bootstrap57 minutes
1 assignmentTotal 15 minutes
  • Web Development with the Django Framework - Styling the Web App - Assessment15 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 videosTotal 18 minutes
  • Setting up Git, Heroku and the Heroku CLI4 minutes
  • Setting up Our Project for Development - Part 15 minutes
  • Deploying to Heroku - Web App Live!9 minutes
1 assignmentTotal 15 minutes
  • Web Development with the Django Framework - Deploying the Web App to Heroku - Assessment15 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 videoTotal 2 minutes
  • Next Steps2 minutes
2 assignmentsTotal 75 minutes
  • Full Course Practice Assessment15 minutes
  • Full Course Assessment60 minutes

Instructor

Offered by

Why people choose Coursera for their career

👁 Image

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
👁 Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
👁 Image

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
👁 Image

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

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.

This course assumes no prior knowledge of Python or programming. It is designed to take you from beginner to intermediate level. If you have basic experience with general computer usage and an eagerness to learn programming, you will find this course accessible. The course provides clear explanations of key concepts, making it easy for newcomers to grasp.

This course is ideal for beginners looking to learn Python and apply it to build web applications, automate tasks, and explore AI concepts. It is perfect for anyone interested in gaining practical Python skills to use in personal projects, career advancement, or starting a new career in tech. Whether you are a complete beginner or someone who wants to expand your Python knowledge, this course will provide you with the tools and confidence to succeed.

The course includes 13 hours and 15 minutes of video content. Depending on your pace and how much time you dedicate to practicing the concepts, you can expect to complete the course in about 2-4 weeks if you spend a few hours a day. Some learners may take more time if they want to dive deeper into the projects or take a slower, more detailed approach to learning.

Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.

If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.

Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.

If you complete the course successfully, your electronic Course Certificate will be added to your Accomplishments page - from there, you can print your Course Certificate or add it to your LinkedIn profile.

This course is currently available only to learners who have paid or received financial aid, when available.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

Financial aid available,