CMSC201 Computer Science I for Majors

嚜澧MSC201

Computer Science I for Majors

Lecture 08 每 Lists

All materials copyright UMBC unless otherwise noted

umbc.edu

Last Class We Covered

? Using while loops

每 Syntax of a while loop

每 Interactive loops

每 Infinite loops and other problems

? Nested Loops

2

umbc.edu

Any Questions from Last Time?

3

umbc.edu

Today*s Objectives

? To learn about lists and what they are used for

每 To be able to create and update lists

每 To learn two different ways to mutate a list

? append() and remove()

? To understand how two-dimensional lists work

? To get more practice with while loops

每 Sentinel values

4

umbc.edu

Introduction to Lists

5

umbc.edu

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download