The Complete Python Course
The Complete Python Course
Included with
Ask Coursera
Recommended experience
Recommended experience
What you'll learn
Install and configure Python and PyCharm on Windows and Mac for seamless development
Understand and apply Python fundamentals including variables, scopes, and data types effectively
Develop Python programs using control structures like loops, decision-making, and functions
Utilize Python modules and object-oriented programming to write modular, scalable code
Skills you'll gain
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
There are 26 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. Master Python programming with this all-in-one course. Learn Python's core concepts, from variables and loops to advanced topics like functions, classes, and modules, with hands-on coding experience in Python and PyCharm. Start with setting up Python on Windows and Mac, then dive into variables, operators, type conversions, and input handling. Build a solid foundation through loops, decision-making, and string manipulations. Advance to functions, recursion, lambda expressions, object-oriented programming, and Python data structures like lists, tuples, sets, and dictionaries. This course is perfect for aspiring programmers, software developers, data enthusiasts, and anyone looking to learn Python from scratch. No prior programming knowledge is required. By the end of the course, you will be able to write Python programs confidently, understand and use data structures effectively, create functions and classes, and leverage modules to solve real-world problems efficiently.
In this module, we will introduce you to the overall course structure and the learning outcomes you can expect. You will explore Python's core features and understand why it is one of the most popular programming languages today. This foundation will set the stage for your Python learning journey.
What's included
2 videos1 reading
2 videos•Total 2 minutes
- Course Introduction•1 minute
- Python Introduction and Features•1 minute
1 reading•Total 10 minutes
- Full Course Resources•10 minutes
In this module, we will guide you step-by-step through setting up your Python development environment. From installing Python and PyCharm to writing and running your first Python script, you'll gain the confidence to start coding immediately.
What's included
4 videos1 assignment
4 videos•Total 9 minutes
- Install Python (2025)•3 minutes
- Install PyCharm (2025)•2 minutes
- Connect Python and PyCharm (2025)•2 minutes
- First Python program on PyCharm (2025)•2 minutes
1 assignment•Total 15 minutes
- Set Up Python - Assessment•15 minutes
In this module, we will focus on the Mac-specific setup for Python programming. You will learn how to install Python and PyCharm on a Mac and configure your system for smooth Python development.
What's included
1 video1 assignment
1 video•Total 9 minutes
- Install Python and PyCharm on MAC•9 minutes
1 assignment•Total 15 minutes
- Install Python on MAC - Assessment•15 minutes
In this module, we will cover the basics of Python variables, including their definition and use. Through practical coding examples, you'll learn how variables serve as fundamental building blocks in Python programs.
What's included
2 videos1 assignment
2 videos•Total 3 minutes
- What Are Variables in Python?•1 minute
- Coding Example - Variables•2 minutes
1 assignment•Total 15 minutes
- Python Variables - Assessment•15 minutes
In this module, we will explore how variable scope affects Python programming. You will learn about the local and global scopes and how to manage variables effectively within different parts of your code.
What's included
4 videos1 assignment
4 videos•Total 8 minutes
- What Is the Scope of Variables?•1 minute
- Local Scope•3 minutes
- Global Scope•2 minutes
- Global Keyword: Change the Value of a Global Variable•2 minutes
1 assignment•Total 15 minutes
- Scope of Variables - Assessment•15 minutes
In this module, we will delve into Python’s fundamental building blocks called tokens. You will learn about various token types, including keywords, identifiers, and literals, and understand how they form the syntax of Python programs.
What's included
4 videos1 assignment
4 videos•Total 9 minutes
- What Are tokens and Their Types?•0 minutes
- Keywords•1 minute
- Identifiers•2 minutes
- Literals•7 minutes
1 assignment•Total 15 minutes
- Python Tokens - Assessment•15 minutes
In this module, we will explore the wide range of operators available in Python. You will learn how to manipulate data and control program flow using operators like arithmetic, logical, and bitwise.
What's included
7 videos1 assignment
7 videos•Total 16 minutes
- What Are Operators?•0 minutes
- Arithmetic Operators•2 minutes
- Assignment Operators•2 minutes
- Logical Operators•3 minutes
- Identity Operators•2 minutes
- Membership Operators•2 minutes
- Bitwise Operators•6 minutes
1 assignment•Total 15 minutes
- Python - Operators - Assessment•15 minutes
In this module, we will teach you how to use comments effectively to make your Python code more readable and maintainable. You will learn the syntax for both single-line and multi-line comments.
What's included
2 videos1 assignment
2 videos•Total 4 minutes
- What Are Comments?•1 minute
- Single-Line and Multi-Line Comments•3 minutes
1 assignment•Total 15 minutes
- Python - Comments - Assessment•15 minutes
In this module, we will cover how to convert data types in Python to ensure compatibility and correctness. Through examples, you will understand when and how to change data types in your programs.
What's included
2 videos1 assignment
2 videos•Total 4 minutes
- What Is Type Conversion in Python?•1 minute
- 3 Coding Examples•4 minutes
1 assignment•Total 15 minutes
- Python – Type Conversion - Assessment•15 minutes
In this module, we will show you how to make your Python programs interactive by capturing user input. You will practice using input functions and learn techniques to handle user-provided data effectively.
What's included
1 video1 assignment
1 video•Total 3 minutes
- How to Get User Input (With Example)•3 minutes
1 assignment•Total 15 minutes
- Python – Get User Input - Assessment•15 minutes
In this module, we will dive into Python’s decision-making statements that control the flow of your programs. You will learn how to write conditional code using if, if…else, and if…elif…else structures to build intelligent, responsive applications.
What's included
4 videos1 assignment
4 videos•Total 5 minutes
- What Are Decision-Making Statements in Python?•0 minutes
- if Statement•1 minute
- if…else Statement•1 minute
- if...elif...else•2 minutes
1 assignment•Total 15 minutes
- Python – Decision-Making Statements - Assessment•15 minutes
In this module, we will explore control statements that affect loop execution in Python. You will master using break to terminate loops and continue to skip iterations, enhancing the flexibility of your loops.
What's included
2 videos1 assignment
2 videos•Total 5 minutes
- Break Statement•3 minutes
- Continue Statement•2 minutes
1 assignment•Total 15 minutes
- Python – Break and Continue Statements - Assessment•15 minutes
In this module, we will uncover the power of loops in Python programming. You will learn how to automate repetitive tasks with while and for loops, enabling you to write efficient, concise code.
What's included
3 videos1 assignment
3 videos•Total 4 minutes
- What Are Loops?•0 minutes
- While Loop•2 minutes
- For Loop•2 minutes
1 assignment•Total 15 minutes
- Python – Loops - Assessment•15 minutes
In this module, we will introduce Python’s numeric data types and their applications. You will understand the characteristics of integers, floats, and complex numbers and learn how to use them effectively in your code.
What's included
2 videos1 assignment
2 videos•Total 7 minutes
- What Are Numeric Datatypes?•1 minute
- Types - Integer, Long, Float, Complex Data Types•6 minutes
1 assignment•Total 15 minutes
- Python – Numbers - Assessment•15 minutes
In this module, we will explore one of Python’s most versatile data types—strings. You will learn how to create, manipulate, and transform strings, unlocking powerful text-processing capabilities in your programs.
What's included
8 videos1 assignment
8 videos•Total 41 minutes
- What Are Strings?•1 minute
- Create a String in Python•1 minute
- String Literals•1 minute
- Slicing to Access Substrings•1 minute
- Negative Indexing to Access Substrings•1 minute
- Accessing a Character in Python Strings•1 minute
- Concatenate Strings•1 minute
- 30+ Built-In String Methods - Coding Examples•34 minutes
1 assignment•Total 15 minutes
- Python – Strings - Assessment•15 minutes
In this module, we will explore Python functions as reusable blocks of code. You will learn how to define functions, pass arguments, implement recursion, and return values to write modular and efficient programs.
What's included
6 videos1 assignment
6 videos•Total 25 minutes
- What Are Functions?•1 minute
- Create and Call a Function•1 minute
- Create a Function with Parameters•2 minutes
- Function Arguments•14 minutes
- Recursion•4 minutes
- The Return Statement•3 minutes
1 assignment•Total 15 minutes
- Python – Functions - Assessment•15 minutes
In this module, we will introduce lambda functions—compact, anonymous functions used for short operations. You will work through examples to understand how to implement lambda functions effectively.
What's included
2 videos1 assignment
2 videos•Total 6 minutes
- What Are Lambda Functions?•0 minutes
- 5 Coding Examples•6 minutes
1 assignment•Total 15 minutes
- Python – Lambda Functions - Assessment•15 minutes
In this module, we will dive into object-oriented concepts by learning about classes and objects. You will explore how to structure programs using these concepts to build scalable and organized code.
What's included
5 videos1 assignment
5 videos•Total 12 minutes
- Classes and Objects - Introduction•0 minutes
- What Is a class? How to Create It?•2 minutes
- What Is an Object?•1 minute
- Examples - Classes and Objects•5 minutes
- init() Function•4 minutes
1 assignment•Total 15 minutes
- Python – Classes and Objects - Assessment•15 minutes
In this module, we will explore tuples as fixed collections in Python. You will understand when to use tuples over lists and practice creating and manipulating tuples through hands-on examples.
What's included
4 videos1 assignment
4 videos•Total 24 minutes
- What Are Tuples in Python?•0 minutes
- Difference between Tuples and Lists•1 minute
- Create a Tuple in Python•2 minutes
- Tuples - 16 Coding Examples•21 minutes
1 assignment•Total 15 minutes
- Python – Tuples - Assessment•15 minutes
In this module, we will introduce dictionaries, a powerful way to store and access data using keys. You will learn how to create and manipulate dictionaries to manage complex data efficiently.
What's included
3 videos1 assignment
3 videos•Total 35 minutes
- What Are Dictionaries in Python?•1 minute
- How to Create a Dictionary•5 minutes
- 19 Coding Examples - Dictionary•29 minutes
1 assignment•Total 15 minutes
- Python – Dictionary - Assessment•15 minutes
In this module, we will cover lists extensively, demonstrating their flexibility and use cases. You will practice creating lists, combining them, and handling multi-dimensional lists for advanced data structures.
What's included
6 videos1 assignment
6 videos•Total 38 minutes
- What Are Lists in Python?•1 minute
- Difference between Tuples and Lists•1 minute
- Creating a List in Python•2 minutes
- 22 Coding Examples - Lists•28 minutes
- Join Lists•1 minute
- Multi-Dimensional Python List•6 minutes
1 assignment•Total 15 minutes
- Python – Lists - Assessment•15 minutes
In this module, we will introduce sets as unordered collections with unique elements. You will learn how to create and utilize sets to perform operations like union, intersection, and difference.
What's included
3 videos1 assignment
3 videos•Total 21 minutes
- What Are Sets in Python?•1 minute
- How to Create a Set•1 minute
- Sets - 15 Coding Example•19 minutes
1 assignment•Total 15 minutes
- Python – Sets - Assessment•15 minutes
In this module, we will explore how to structure Python programs using modules. You will learn to import and use built-in and custom modules to write cleaner and more maintainable code.
What's included
2 videos1 assignment
2 videos•Total 2 minutes
- What Are Python Modules?•1 minute
- How to Load a Module in Python•2 minutes
1 assignment•Total 15 minutes
- Python – Modules - Assessment•15 minutes
In this module, we will delve into the math module that provides mathematical functions and constants. You will learn how to perform advanced math operations easily within your Python programs.
What's included
2 videos1 assignment
2 videos•Total 12 minutes
- What Is a Math Module and How to Import?•1 minute
- 10 Coding Examples - Math Module Functions•12 minutes
1 assignment•Total 15 minutes
- Python – math Module - Assessment•15 minutes
In this module, we will cover the statistics module for data analysis. You will learn to calculate measures like mean, median, and variance using built-in functions with real-world examples.
What's included
2 videos1 assignment
2 videos•Total 6 minutes
- What Is a Statistics Module and How to Import?•1 minute
- 4 Coding Examples - Statistics Module Functions•5 minutes
1 assignment•Total 15 minutes
- Python – Statistics Module - Assessment•15 minutes
In this module, we will introduce the random module that helps generate random numbers and selections. You will practice creating random data to add unpredictability and variation to your programs.
What's included
2 videos3 assignments
2 videos•Total 7 minutes
- What Is a Random module and How to Import It?•1 minute
- Four Coding Examples - Random Module Functions•6 minutes
3 assignments•Total 90 minutes
- Full Course Practice Assessment•15 minutes
- Python – Random Modules - Assessment•15 minutes
- Full Course Assessment•60 minutes
Instructor
Explore more from Software Development
- Status: PreviewS
Simplilearn
Course
- Status: Free Trial
- P
Packt
Course
Why people choose Coursera for their career
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Frequently asked questions
Python is a high-level programming language known for its simplicity and versatility, making it ideal for both beginners and experienced developers. It is widely used in various fields, including web development, data science, artificial intelligence, and automation. Learning Python is relevant because it is one of the most in-demand programming languages in the tech industry, and it provides a strong foundation for a wide range of applications.
This course is designed to teach you Python programming from scratch. It covers essential concepts such as Python variables, loops, decision-making statements, data types (like strings, lists, and dictionaries), functions, and modules. You will also learn practical techniques like using the PyCharm IDE and working with Python’s built-in modules such as math, statistics, and random. The course includes coding examples to help you apply your knowledge as you progress through each section.
After completing this course, you will be able to write and execute Python programs, work with different data types and structures, create functions, and use Python libraries like math, statistics, and random. You'll also have a solid understanding of object-oriented programming (OOP) concepts such as classes and objects, and you'll be capable of building more complex projects using Python. You will have the foundational knowledge to dive into more advanced Python topics or specialized areas like data analysis or web development.
More questions
Financial aid available,
