CSC108H1 Lecture : november 11 notes
yifanyang and 39659 others unlocked
21
CSC108H1 Full Course Notes
Verified Note
21 documents
Document Summary
Python doesn"t care about the filename (whether it is . txt or something else. ) it is exactly as we opened files in class and the examples. Aliasing two names in the namespace that points to the same object. # when take a slice, a copy of list is taken only. >>> l1 = [ [ a", 1], [ b", 2] ] # in nested lists other lvls still same. # when concatenating lists, new list is created w/ the operator +". Assignment evaluate address of the right, put it equal to the left.