C S 303E Lecture 5: Lecture 5 Notes

43 views2 pages
18 Jan 2019
School
Course
Professor

Document Summary

Reads specified number of characters from the file. If no integer is provided, returns all unread characters. Readline(): reads the next line of the file up to a \n. Readlines(): returns a list of the remaining lines of a file. Write(string): writes a specified string to a file. Same as del dictionary[key] but returns a value. Operations: similar operations as lists, but there is no indexing or slicing. A set s1 is a subset of s2 if every element of s1 is also in s2. Proper subsets: s1 is a subset of s2, but s1 != s2. Proper supersets: s2 is a superset of s1, but s1 != s2. < and >: test for proper subsets/supersets. Contains elements that appear in both sets. Contains element in the first set not in the second set. Contains elements exactly in exactly one of two sets. Base case: value for function to calculate directly without a recursive call.

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

Related Questions