# Author: James Tam # Version: October 24, 2013 # # A common mistake: assuming that this program is 'hanging' because of # an endless loop and then focusing all of one's energy on trying to debug # that part of the program. (If you don't spot the bug then here's a hint: # this program is extremely un-user friendly, "What am I supposed to do?" MIN = 0 MAX = 114 HUMAN_CAT_RATIO = 7 age = int(input()) while ((age < MIN) or (age > MAX)): age = int(input()) age = age / HUMAN_CAT_RATIO print("Your age if you were a cat %0.0f" %(age))