Implement Hash Functions In Python