Behind every mouse click and touch-screen tap, there is a computer program that makes things happen. This course introduces the fundamental building blocks of programming and teaches you how to write fun and useful programs using the Python language.
This module gives an overview of the course, the editor we will use to write programs, and an introduction to fundamental concepts in Python including variables, mathematical expressions, and functions.
What's included
8 videos10 readings1 assignment
Show info about module content
8 videos•Total 39 minutes
Welcome to LTP•1 minute
Installing Python•3 minutes
Python as a Calculator•11 minutes
Python and Computer Memory•3 minutes
Variables•8 minutes
Visualizing Assignment Statements•3 minutes
Built-in Functions•5 minutes
Defining Functions•7 minutes
10 readings•Total 100 minutes
Syllabus•10 minutes
Course Logistics•10 minutes
Resources•10 minutes
Installing Python•10 minutes
Python as a Calculator•10 minutes
Python and Computer Memory•10 minutes
Variables•10 minutes
Visualizing Assignment Statements•10 minutes
Built-in Functions•10 minutes
Defining Functions•10 minutes
1 assignment•Total 30 minutes
Python, Variables, and Functions•30 minutes
Strings and Designing Functions
Module 2•5 hours to complete
Module details
This module introduces strings (a Python data type used to represent text), and a process to follow when creating a function.
This module introduces Booleans (logical values True and False), how to convert between types, how to use Boolean expressions in if statements to selectively run code, and the concept of a Python module.
What's included
7 videos7 readings1 assignment
Show info about module content
7 videos•Total 42 minutes
Functions, Variables, and the Call Stack•5 minutes
Type Bool•9 minutes
Converting Between int, str, and float•3 minutes
Import: Using Non-Built-in Functions•5 minutes
If Statements•9 minutes
No if Required•4 minutes
Structuring if Statements•6 minutes
7 readings•Total 70 minutes
Functions, Variables, and the Call Stack•10 minutes
Type Bool•10 minutes
Converting Between int, str, and float•10 minutes
Import: Using Non-Built-in Functions•10 minutes
If Statements•10 minutes
No if Required•10 minutes
Structuring if statements•10 minutes
1 assignment•Total 30 minutes
Booleans, Import, Namespaces, and if Statements•30 minutes
For Loops and Fancy String Manipulation
Module 4•5 hours to complete
Module details
This module introduces one way to repeat code (using a for loop), how to manipulate strings, and how to use a debugger to watch a program execute step by step.
Str Methods: Functions Inside of Objects•4 minutes
For Loop Over Str•12 minutes
IDLE's Debugger•4 minutes
5 readings•Total 50 minutes
More str Operators•10 minutes
Str: Indexing and Slicing•10 minutes
Str Methods: Functions Inside of Objects•10 minutes
For Loop Over Str•10 minutes
IDLE's Debugger•10 minutes
1 assignment•Total 30 minutes
For Loops and Fancy String Manipulation•30 minutes
1 programming assignment•Total 180 minutes
Assignment 2: DNA Processing•180 minutes
While Loops, Lists, and Mutability
Module 5•2 hours to complete
Module details
This module introduces another way to repeat code (using a while loop), how to properly document your code to help other programmers understand it, Python's list data type, and the concept of mutation.
What's included
6 videos6 readings1 assignment
Show info about module content
6 videos•Total 43 minutes
While Loops•12 minutes
Comments•5 minutes
Type list•4 minutes
list Methods•8 minutes
Mutability and Aliasing•10 minutes
range•4 minutes
6 readings•Total 60 minutes
While Loops•10 minutes
Comments•10 minutes
Type list•10 minutes
list Methods•10 minutes
Mutability and Aliasing•10 minutes
range•10 minutes
1 assignment•Total 30 minutes
While Loops, Lists, and Mutability•30 minutes
For Loops Over Indices, Parallel and Nested Lists and Strings, and Files
Module 6•6 hours to complete
Module details
This module introduces how to use a for loop over the indexes of a list, how to nest lists, and how to read a write files.
Established in 1827, the University of Toronto is one of the world’s leading universities, renowned for its excellence in teaching, research, innovation and entrepreneurship, as well as its impact on economic prosperity and social well-being around the globe.
"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."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
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."
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."
Learner reviews
4.7
6,735 reviews
5 stars
78.57%
4 stars
17.87%
3 stars
1.93%
2 stars
0.60%
1 star
1%
Showing 3 of 6735
C
CB
5·
Reviewed on Feb 5, 2020
As a complete beginner in the world of programming, this is one of the best courses I have found. The instructors are excellent. I thank them for taking the time to develop such a useful course.
J
JW
4·
Reviewed on Apr 11, 2020
I enjoyed this course very much. The concepts were well explained. I gave only 4 stars because I wish there were more assignments to do instead of the quizzes. All in all great intro into programming.
C
CA
5·
Reviewed on May 23, 2018
Great course!It really shows the fundamentals of programming in python. great for begginers!It's a great start for learning how to make programs the right way!I really appreciate the opportunity !
What will I actually learn in this Python programming course?
You'll learn how to turn simple problems into Python code and understand what the computer is doing as it runs that code. It starts with expressions, variables, and functions, then builds into decisions, loops, and working with text, files, and collections. You'll apply that in quizzes and programming assignments, including string-processing work such as DNA processing.
Do I need to know Python before taking this course?
No, the course starts from the beginning and teaches Python as it teaches programming. You'll begin with installing Python and using IDLE, then move into expressions, variables, and functions. The main thing you'll need is a willingness to practice, because you'll start writing code early in the course.
Is this course beginner-friendly for Python programming?
Yes, it's beginner-friendly for someone who wants a thorough introduction to programming, not just a quick tour of syntax. The course explains core ideas carefully and reinforces them with lessons, readings, quizzes, and programming assignments, so you keep practicing as the material builds. It may feel more demanding if you're looking for a very short overview, because regular practice is part of the learning experience.
How long does it take to complete this course?
Plan on about 25 hours in total. At around 10 hours a week, that's roughly 2 to 3 weeks of study, though the material is organized as a seven-module course. Expect a mix of lessons, readings, quizzes, and programming assignments rather than video-only study.
Are there hands-on exercises or projects in this course?
Yes, the course includes regular hands-on coding, though it leans more toward guided assignments than open-ended projects. You'll write functions, trace programs with visualizer tools and the IDLE debugger, and complete programming assignments on tasks such as time zones or DNA processing. That matters because you apply each concept soon after it's introduced.
What skills and topics are covered in this course?
You'll cover the main building blocks of Python programming, from variables, functions, and strings to Boolean logic, if statements, and loops. The course then moves into debugging, file handling, and working with collections such as lists, tuples, and dictionaries. By the end, you'll have a practical grasp of how to write, read, and reason through small programs.
What can I actually do after finishing this course?
By the end, you should be able to write small Python programs that use functions, conditionals, loops, and common data structures. That includes tasks like processing strings, reading from and writing to files, or storing and looking up information in a dictionary. You should also be able to trace how your code runs and fix many basic errors on your own.
Is this course more focused on theory or hands-on learning?
It's more concept-first, with regular coding practice built in. The course spends time explaining how Python works, then reinforces each idea through guided practice, quizzes, and assignments. That's a good match if you want to understand your code, not just copy examples.
Why would I choose this course over other Python courses?
Choose this course if you want a careful introduction that teaches both Python syntax and how programs behave in memory. Rather than centering on large projects, it uses a function design recipe and code-tracing examples to help you build reliable habits while you learn strings, loops, files, and dictionaries. If you learn best from clear explanations and step-by-step coding practice, it's a better fit than a faster, project-first Python course.