In Python 2.7:
a=80
b=100
def status(hp, maxhp):
print "You are at %r percent health." % hp*100/maxhp
status(a,b)
Returns:
TypeError: unsupported operand type(s) for /: 'str' and 'int'
I've already tried putting int() around each variable and each combination of variables.