#!/usr/local/bin/python print "At the prompt, enter a line, and I'll hash it. Type return to exit." while (1): message = raw_input(">> ") if (not message): break print "That hashes to", (hash(message) % 64) print "Goodbye."