Think Python: How to Think Like a Computer Scientist

(singke) #1

factorial, More Recursion, Conditional Expressions


fibonacci, One More Example, Memos


find, Searching


float, Function Calls


fruitful, Fruitful Functions and Void Functions


getattr, Debugging


getcwd, Filenames and Paths


hasattr, Debugging, Debugging


input, Keyboard Input


int, Function Calls


isinstance, Checking Types, Debugging, Type-Based Dispatch


len, Exercises, len, A Dictionary Is a Mapping


list, Lists and Strings


log, Math Functions


math, Math Functions


max, Tuples as Return Values, Variable-Length Argument Tuples


min, Tuples as Return Values, Variable-Length Argument Tuples


open, Reading Word Lists, Reading Word Lists, Reading and Writing, Catching


Exceptions, Databases


polygon, Exercises


popen, Pipes


programmer defined, Parameters and Arguments, Optional Parameters


randint, Exercises, Random Numbers

Free download pdf