calc/views.py
def subtract():
    """Takes numbers params and subtracts them from the first"""
    if not request.args.get('numbers'):
        return "You need to give numbers to subtract", 400
    numbers = request.args.getlist('numbers')
    return str(calculator.subtract(numbers))
Takes numbers params and subtracts them from the first
Takes numbers params and subtracts them from the first
Takes numbers params and subtracts them from the first
def subtract():
    if not request.args.get('numbers'):
        return "You need to give numbers to subtract", 400
    numbers = request.args.getlist('numbers')
    return str(calculator.subtract(numbers))
def subtract ( ) : if not request . args . get ( 'numbers' ) : return "You need to give numbers to subtract" , 400 numbers = request . args . getlist ( 'numbers' ) return str ( calculator . subtract ( numbers ) )
Takes numbers params and subtracts them from the first
Takes numbers params and subtracts them from the first
"""Takes numbers params and subtracts them from the first"""