CSCA08H3 Chapter Notes - Chapter 5: Automat, Vehicle Identification Number, The Tab

49 views4 pages

Document Summary

To store all lot of variables unknowing when we need to stop, we store all values together in a list. To do this whales_number = [5, 4, 3, 2, 1, 23, 4] to days=[1, 2, 3] Wanting to get the objects in a list we use their index number! We can assign the values in a list to other variables. The empty list - a list with no items written. Lists are heterogeneous lists can contain any type of data, including integers, strings, and even other lists. You can rewrite in a list by just doing nobles[1]= neon then run nobles and it is fix. Note: name = darwin then capitalized = name. upper() then print capitalized = darwin . Returns the number of items in list l max(l) returns the maximum value in list l min(l) returns the minimum value in list l sum(l) returns the sum of the values in list l.

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