CMPT 120 Lecture 14: CMPT120 – Lecture 14

29
CMPT 120 Full Course Notes
Verified Note
29 documents
Document Summary
Cmpt120 lecture 14 (midterm review: 15-20 questions m/c and 2/3 coding questions, double-sided cheat sheet for coding exam (friday) , look at slides to review questions. Study tips: get help with ta"s i(cid:374) la(cid:271, re-do the coding questions from fridays, textbook links are there for clarification, wo(cid:374)"t (cid:271)e dire(cid:272)tl(cid:455) fro(cid:373) the li(cid:374)ks o(cid:374) e(cid:454)a(cid:373) Questions: does the. split() change a string to a list. It creates a new list containing the elements of a string: string remains unchanged but it creates a new list with the contents of the string, python modules are extra programs that contain extra functionality. Modules are a way to share code: what does a dot after a module name do, allows you to access a function in that module. If the module contains 10 different functions, then putting the dot after the name lets you access any of those 10 functions: can be used for chaining, when do you use =, ==, ===