CSE 1010 Lecture Notes - Lecture 2: Comma-Separated Values, Concatenation

30 views2 pages
jadetortoise401 and 55 others unlocked
CSE 1010 Full Course Notes
84
CSE 1010 Full Course Notes
Verified Note
84 documents

Document Summary

Cse notes 9/14/17: the host is the actual hardware, the guest is the virtual machine. [2016, "chemistry", 1997, 2000: delete list elements, >>>del list[2] List: list build up, create an empty list, then use append() or extend () to add elements to it, >>>list = [, >>>list. append("a", >>>list. extend("c", extend function can also append a list to a list. Insert methods inserts element into list before the index: >>>list. insert(0, "x") List---- x a b c d: >>>list. insert(-1,"y", x a b c y d. Index method returns the lowest index in list that element appears: >>>list. index("b", 2, >>>list. insert(0, "b", >>>list. index("b", 0, remove method removes element from list, >>>list. remove("b") If you have two b"s for example, it will only remove the first one that comes up: count method returns how many times element occurs in list. List. count: sort function sorts elements of list, >>>list= ["b", "a", "b", "e", "d"] List. sort(: this completely changes the actual list= destructive method.

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