Class Notes (837,548)
Canada (510,312)
CMPT 120 (49)
Greg Baker (15)
Lecture

Lists

2 Pages
118 Views
Unlock Document

Department
Computing Science
Course
CMPT 120
Professor
Greg Baker
Semester
Fall

Description
11022007CMPT120ListsA way to hold an ordered collection of values in a single variableegmylist0 10 20 30 40 50print mylist 2 20subscripting works just like for stringsegfor i in rangelenmylistprint mylistilists can hold any type of data egwordsapple pear bananasjunk1 two 111 Trueprint junk21 1lists can be created by functions or methodsegrange4 0 1 2 3sone two threeprint ssplitone two threelists can be joined like stringsegprint 0 120 300 1 20 30lists can be modified without totally rebuilding the
More Less

Related notes for CMPT 120

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit