Think Python: How to Think Like a Computer Scientist

(singke) #1
Tuples  Are Immutable,  Variable-Length Argument    Tuples, Format  Operator,
Another Example, When I run the program I get an exception.

UnboundLocalError,  Global  Variables

ValueError, Keyboard    Input,  Tuple   Assignment

exception, catching, Catching Exceptions


execute, Expressions and Statements, Glossary


exists function, Filenames and Paths


experimental debugging, Debugging, Debugging


exponent, Order of Growth


exponential growth, Order of Growth


expression, Expressions and Statements, Glossary


big and hairy,  I’ve    got a   big hairy   expression  and it  doesn’t do  what    I   expect.

boolean,    Boolean Expressions,    Glossary

conditional,    Conditional Expressions,    Glossary

generator,  Generator   Expressions,    any and all,    Glossary

extend method, List Methods


F


factorial, Conditional Expressions


factorial function, More Recursion, Checking Types


factory, Glossary


factory function, defaultdict, defaultdict


False special value, Boolean Expressions


Fermat’s Last Theorem, Exercises

Free download pdf