Skip to main content

Foundations of Python Programming: Functions First

Section 6.1 Introduction

Computers are often used to automate repetitive tasks. Repeating identical or similar tasks without making errors is something that computers do well and people do poorly.
Repeated execution of a sequence of statements is called iteration. Because iteration is so common, Python provides several language features to make it easier. In this chapter we are going to look at the while statement.

Subsection 6.1.1 Learning Goals

  • To understand indefinite iteration
  • To solve problems involving convergence

Subsection 6.1.2 Objectives

  • To apply the while loop for indefinite iteration
  • To be able to identify while loops that are likely to be infinite loops
You have attempted of activities on this page.