Check Yourself

What does hashing do?

 View/hide answer

It converts the object to be hashed into an int that lies within a pre-defined range.

 

 

What is a bucket?

 View/hide answer

A list of items that have the same hash value.

 

 

What are try blocks for?

 View/hide answer

Try blocks are used when a piece of code may not work in all cases or for all inputs. It consists of a try statement and an except statement. First the try statement is executed; if it throws an exception, the program uses the except statement instead of terminating the program.

 

 

What does polymorphic mean?

 View/hide answer

Works with a variety of different types.

 

 

What is a module?

 View/hide answer

A collection of related functions.

 

 

What is an object?

 View/hide answer

A collection of data and functions that operate on that data.