- Beginner
- 4 Hours 15 Minutes
- 35 Video Lessons
- 25 Code Examples
- Instructor: Andrew Ng
What you'll learn
Learn Python programming fundamentals and how to integrate AI tools for data manipulation, analysis, and visualization.
Discover how Python can be applied in various domains such as business, marketing, and journalism to solve real-world problems and enhance efficiency through practical applications.
Leverage AI assistants to debug code, explain concepts, and enhance your learning, mirroring real-world software development practices.
About this course
AI Python for Beginners is designed to help you leverage the power of Python programming, even if your goal isn’t to become a software developer or AI engineer. This four-part course teaches you to code practical AI applications from day one, whether you’re an experienced programmer, or writing “Hello, World!” for the first time. You’ll learn with support from an AI chatbot that can provide you with immediate feedback, answer your questions, quickly identify and work through bugs, and keep you on track while learning new skills.
You’ll gain a foundational understanding of Python while using it to build AI-powered tools like custom recipe generators, smart to-do lists, and vacation planners, learning essential programming concepts such as variables, functions, loops, and data structures along the way. As you progress, you’ll work with your own data, extracting valuable insights from text files and structured data, including planning a dream vacation by having AI analyze travel blogs and generate personalized itineraries!
By the end of this course series, you’ll be able to write Python scripts that interact with large language models, automate tasks, and analyze your own data. You’ll even learn how to extend Python’s capabilities using popular third-party packages for data analysis and visualization, and how to access real-time information through APIs. These are skills that are increasingly valuable across industries from tech and finance to healthcare and creative fields.
Hands-on projects
Throughout this course, you’ll engage in practical, hands-on exercises that reinforce your learning and demonstrate the wide range of possibilities for what you can create with Python and AI. Here are some of the projects you’ll work on:
- Custom Recipe Generator: Create an AI-powered tool that generates unique recipes based on available ingredients. You’ll use variables, f-strings, and AI prompts to craft personalized culinary creations.
- Smart To-Do List: Build an intelligent task manager that not only stores your to-do items but also prioritizes them using AI. You’ll apply your knowledge of lists, dictionaries, and decision-making code to enhance productivity.
- Travel Blog Analyzer: Develop a program that reads travel blog entries and uses AI to extract key information like restaurant names and popular dishes. This exercise showcases your ability to work with files and leverage AI for text analysis.
- Dream Vacation Planner: Create a sophisticated itinerary generator that takes a multi-city trip plan and uses AI to suggest daily activities, including restaurant recommendations. You’ll work with CSV files, dictionaries, and AI prompts to build this comprehensive travel tool.
- Data Visualization Project: Using popular Python libraries like matplotlib, you’ll create visual representations of data. This could involve plotting price trends of used cars or visualizing travel statistics from your vacation planner.
- Web Data Extraction: Use the BeautifulSoup library to scrape web pages and extract useful information, opening up a world of data for your projects.
- Real-time Data Application: Build a program that interacts with web APIs to fetch and process real-time data, such as current weather information or live currency exchange rates.
These hands-on projects not only reinforce your Python skills but also demonstrate how AI and programming can be applied to solve real-world problems and enhance everyday tasks. By the end of the course, you’ll have a portfolio of practical AI-powered applications that you’ve built from scratch!
You’ll learn directly from Andrew Ng, a globally recognized AI leader known for his engaging teaching style. Andrew has educated around 8 million people worldwide through his online courses, helping them build foundational skills in AI and machine learning.
Accelerated learning with AI
Experience a new kind of learning with AI chatbot integration. This intelligent assistant helps you write, test, and debug code, providing instant feedback and personalized guidance, making sure you’re never coding alone. With the rise of AI tools, the effort and time required to learn helpful coding skills have significantly decreased, making it more accessible and beneficial for everyone. You’ll be amazed at how quickly you can go from writing your first line of code to creating AI-powered applications that can process and analyze real-world data.
Who should join?
This course is for anyone curious about AI and programming with Python, from complete beginners learning to code for the first time to professionals seeking to boost productivity and learn how to properly integrate AI into their coding process. Ideal for students, career changers, knowledge workers, lifelong learners, and educators. If traditional coding courses haven’t worked or have felt intimidating, our hands-on, AI-focused approach will help you in your journey.
Whether you want to automate repetitive tasks, extract insights from large datasets, or create AI-powered tools to enhance your work or personal projects, this course will give you the skills to get started. By the end, you’ll not only understand Python basics but also know how to leverage powerful data analysis libraries, interact with web APIs, and set up Python on your own computer to continue your learning journey.
Course Outline
35 Lessons・25 Code ExamplesIn this course, you’ll learn Python basics while immediately putting them to work in exciting AI applications. Write your first lines of code, understand core programming concepts, and start creating AI-powered tools from day one. You’ll use a Jupyter Notebook environment — the same tool used by engineers and data scientists — and learn to leverage AI assistants to enhance your coding skills. By the end, you’ll be writing Python scripts that interact with large language models, setting the foundation for creating advanced AI applications.
By the end of this course, you will be able to:
- Describe what computer programming is and give examples of how programming is used in the world
- Write and run Python code inside a special programming environment called a Jupyter notebook
- Write simple Python programs that display text or numbers to the screen, including the result of calculations that Python has carried out for you
- Interact with an AI large language model via the Python programming language
- Chat with a chatbot to ask questions about how programming works
- Work with a chatbot to write code to carry out a specific task
- Use a chatbot to explain code errors and fix bugs in code
- List the most basic data types in Python: strings, integers (ints), and floats, and know that strings represent text and floats and ints represent numbers
- Create variables to store data and assign them values
- Print data to the screen using the print function
- Check the type of a piece of data or variable using the type function
- Use Python as a calculator
- Print strings and numbers to the screen using formatted strings
- Create LLM prompts using f-strings and pass them to an LLM to carry out tasks using a custom LLM-calling function
- Describe what a function is and how to use it in Python
Introduction
Video・3 mins
What is computer programming?
Video・5 mins
Writing code with chatbots
Video・6 mins
Navigating the learning platform
Video・3 mins
Running your first program
Video with code examples・8 mins
How to succeed in coding
Video・2 mins
Data in Python
Video with code examples・10 mins
Combining text and calculations
Video with code examples・7 mins
Variables
Video with code examples・7 mins
Building LLM prompts with variables
Video with code examples・4 mins
Functions: Actions on Data
Video with code examples・7 mins
Skills you will gain
- Python Programming
- AI-Assisted Coding
- Effective LLM Prompts
- Data Structures
- Function Creation
- Variable Management
- Debugging
- File Handling
- API Interaction
Frequently Asked Questions
Instructor
AI Python for Beginners
- Beginner
- 4 Hours 15 Minutes
- 35 Video Lessons
- 25 Code Examples
- Instructor: Andrew Ng
Course access is free for a limited time during the DeepLearning.AI learning platform beta!
Want to learn more about Generative AI?
Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!