Skip main navigation

While loops in Python

Learn programming basics! Understand algorithms, propositional logic, and Python syntax. Create programs and grasp the basics of computer science.

Rafael demonstrates how to use while loops in instances when we may not know in advance how many times we want to execute a piece of code.

This article is from the free online

An Introduction to Programming Using Python

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now