Think Python: How to Think Like a Computer Scientist

(singke) #1
List    Comprehensions

Generator   Expressions

any and all

Sets

Counters

defaultdict

Named   Tuples

Gathering   Keyword Args

Glossary

Exercises


  1. Debugging


Syntax  Errors
I keep making changes and it makes no difference.

Runtime Errors
My program does absolutely nothing.

My  program hangs.

When    I   run the program I   get an  exception.

I   added   so  many    print   statements  I   get inundated   with    output.

Semantic    Errors
My program doesn’t work.

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

I’ve    got a   function    that    doesn’t return  what    I   expect.

I’m really, really  stuck   and I   need    help.

No, I   really  need    help.


  1. Analysis of Algorithms


Order   of  Growth
Free download pdf