Advertisement

Loops and Lists

  • Hans Petter Langtangen
Chapter
Part of the Texts in Computational Science and Engineering book series (TCSE, volume 6)

Abstract

This chapter explains how repetitive tasks in a program can be automated by loops. We also introduce list objects for storing and processing collections of data with a specific order. Loops and lists, together with functions and if tests from Chap. 3, lay the fundamental programming foundation for the rest of the book. The programs associated with the chapter are found in the folder src/looplist.

Keywords

List Comprehension Boolean Expression Loop Condition List Object Print Statement 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Springer-Verlag Berlin Heidelberg 2016

Authors and Affiliations

  1. 1.Simula Research LaboratoryFornebuNorway
  2. 2.Department of InformaticsUniversity of OsloOsloNorway

Personalised recommendations