calc/views.py
def multiply():
    """Takes numbers params and multiplies them together"""
    if not request.args.get('numbers'):
        return "You need to give numbers to multiply", 400
    numbers = request.args['numbers']
    return str(calculator.multiply(numbers))
Takes numbers params and multiplies them together
Takes numbers params and multiplies them together
Takes numbers params and multiplies them together
def multiply():
    if not request.args.get('numbers'):
        return "You need to give numbers to multiply", 400
    numbers = request.args['numbers']
    return str(calculator.multiply(numbers))
def multiply ( ) : if not request . args . get ( 'numbers' ) : return "You need to give numbers to multiply" , 400 numbers = request . args [ 'numbers' ] return str ( calculator . multiply ( numbers ) )
Takes numbers params and multiplies them together
Takes numbers params and multiplies them together
"""Takes numbers params and multiplies them together"""