Intro to Python: Conditionals, Loops, and Functions
Ends soon! Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Intro to Python: Conditionals, Loops, and Functions
This course is part of Introduction to Programming with Python Specialization
Instructor: Bill Rosenthal
Included with
Learn more
What you'll learn
Implement conditional logic using boolean comparison operators, complex nested if-else structures, and Python's match-case statement.
Build efficient for and while loops alongside advanced list comprehensions to traverse multi-dimensional data structures.
Structure reusable code by writing custom functions with variable scopes and establishing object-oriented classes with inheritance.
Data files for this course are provided in the first course of this specialization, "Intro to Python: Setup and Data Processing".
Skills you'll gain
Tools you'll learn
Details to know
January 2026
1 assignment
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 3 modules in this course
In this course, you'll continue developing your Python skills by controlling program logic through conditional statements and loops. You'll also make your code more modular and reusable through functions, classes, and modules.
This is the second course in a multi-course Specialization. All of the courses in this Specialization require that you use the provided virtual machine, which includes an installation of Python. The course setup instructions provided in the first course go into more detail about the hardware and software requirements.
Other than storing data, programming languages like Pythonยฎ execute logical processes in order to determine what to do in a program. Conditional statements and loops are the primary ways that you can control the logical flow of a program, and they are found in nearly all Python-developed software. In this lesson, you'll take advantage of both to produce a more complex application.
What's included
1 reading4 plugins
1 readingโขTotal 5 minutes
- โ ๏ธREAD THIS FIRSTโ ๏ธโข5 minutes
4 pluginsโขTotal 130 minutes
- Lesson Introductionโข5 minutes
- Write Conditional Statementsโข60 minutes
- Write Loopsโข60 minutes
- Lesson Summaryโข5 minutes
Object-oriented languages excel at giving programmers the tools they need to make coding easier. Reusing code not only enables you to develop at a quicker pace, but it also makes your source code more readable. Inefficient and ugly code is incredibly difficult to maintain, so you'll leverage Python's built-in reusable objects to avoid this pitfall.
What's included
5 plugins
5 pluginsโขTotal 190 minutes
- Lesson Introductionโข5 minutes
- Define and Call Functionsโข60 minutes
- Define and Instantiate Classesโข60 minutes
- Import and Use Modulesโข60 minutes
- Lesson Summaryโข5 minutes
You'll wrap things up and then validate what you've learned in this course by taking an assessment.
What's included
1 reading1 assignment
1 readingโขTotal 5 minutes
- Course Summaryโข5 minutes
1 assignmentโขTotal 10 minutes
- Course Assessmentโข10 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
- Status: Free TrialL
Logical Operations
Course
- Status: Free TrialS
Scrimba
Course
- Status: Free Trial
- Status: Free TrialL
Logical Operations
Course
Why people choose Coursera for their career
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
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.
More questions
Financial aid available,
