calc/views.py
def root():
    """Calculates the root of the inputs.
    
       Takes numbers params and finds the xth root of y where x is the first 
       number param and y is the second
    """
    if not request.args.get('numbers'):
        return "You need to give numbers to find the root.", 400
    numbers = request.args['numbers']
    return str(calculator.root(numbers))
Calculates the root of the inputs.
    
       Takes numbers params and finds the xth root of y where x is the first 
       number param and y is the second
    
Calculates the root of the inputs.
Takes numbers params and finds the xth root of y where x is the first
number param and y is the second
Calculates the root of the inputs . Takes numbers params and finds the xth root of y where x is the first number param and y is the second
def root():
    if not request.args.get('numbers'):
        return "You need to give numbers to find the root.", 400
    numbers = request.args['numbers']
    return str(calculator.root(numbers))
def root ( ) : if not request . args . get ( 'numbers' ) : return "You need to give numbers to find the root." , 400 numbers = request . args [ 'numbers' ] return str ( calculator . root ( numbers ) )
Calculates the root of the inputs.
Calculates the root of the inputs .
"""Calculates the root of the inputs.
    
       Takes numbers params and finds the xth root of y where x is the first 
       number param and y is the second
    """