def doTest(n):
    """Runs a test. returns score."""
    
    score = 0
    l = list(range(1,16))
    for i in l:
        if input("what is {} to the power of 3? ".format(i)) == str(i**3):
            score += 1
            print("Correct.")
        else:
            print("Wrong, the correct answer is {}".format(i**3))
    return score