calc/views.py
def exponential():
    """Takes numbers params and creates the exponential of them aka x^y."""
    if not request.args.get('numbers'):
        return "You need to give numbers to do x^y", 400
    numbers = request.args['numbers']
    return str(calculator.exponent(numbers))
Takes numbers params and creates the exponential of them aka x^y.
Takes numbers params and creates the exponential of them aka x^y.
Takes numbers params and creates the exponential of them aka x^y .
def exponential():
    if not request.args.get('numbers'):
        return "You need to give numbers to do x^y", 400
    numbers = request.args['numbers']
    return str(calculator.exponent(numbers))
def exponential ( ) : if not request . args . get ( 'numbers' ) : return "You need to give numbers to do x^y" , 400 numbers = request . args [ 'numbers' ] return str ( calculator . exponent ( numbers ) )
Takes numbers params and creates the exponential of them aka x^y.
Takes numbers params and creates the exponential of them aka x^y .
"""Takes numbers params and creates the exponential of them aka x^y."""