Update Prob27.py

Trivial changes; More info in exception message, succint-ified answer
string.