14: Loops

The Crystal Ball - Instruction Manual I: Introduction to Data Science · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    14: Loops

    It’s time for our first look at a non-linear program. Up to now, all of our Python programs have executed step-by-step, start to finish, like a metronome, with each line of code getting executed exactly once. That’s about to change. In this chapter, we introduce the concept of a loop, which is a programming construct that directs lines of code to be executed repeatedly, and out of strict sequence.


    This page titled 14: Loops was last modified on Sun, 18 Sep 2022 02:06:04 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Stephen Davies (allthemath.org) via source content that was edited to the style and standards of the LibreTexts platform.