def mul(message, a, b): result = str(float(a) * float(b)) reply = '{} x {} = {}'.format(a, b, result) message.reply(reply)
def sub(message, a, b): result = str(float(a) - (float(b))) reply = '{} - {} = {}'.format(a, b, result) message.reply(reply)
def power(message, a, b): result = str(float(a) ** float(b)) reply = '{} ** {} = {}'.format(a, b, result) message.reply(reply)
def div(message, a, b): result = str(float(a) / float(b)) reply = '{} / {} = {}'.format(a, b, result) message.reply(reply)
def add(message, a, b): print a, b result = str(float(a) + float(b)) reply = '{} + {} = {}'.format(a, b, result) message.reply(reply)
def power(message, a, b): result = str(float(a)**float(b)) reply = '{} ** {} = {}'.format(a, b, result) message.reply(reply)