ITI 1120 Chapter Notes - Chapter 8: Memory Address, Krypton, Boiling Point

42 views4 pages

Document Summary

Up to this point, we have seen numbers, boolean values, strings, functions, and a few other types. Once one of these objects has been created, it cant be modified: we will learn how to use the type list, lists contain 0 or more objects and are used to keep track of collections of data. Unlike everything else we have learned, lists can be modified. 8. 1 storing and accessing data in lists: rather than having a program that might need a lot of variables, we can use a list to keep track of things. We can use a list to keep track of the int objects that contain the counts: a list is an object, like any other object, it can be assigned to a variable. General form of a list expression is : [<>, <>, , <>: an empty list is expressed as []. In the wale example in the textbook, variable whales refers to a list with 14 items.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents