Question: 
Write a function to calculate the sum of series 1³+2³+3³+….+n³.


Model's Code:
def sum_series(n):
    return (n * (n + 1) // 2) ** 2



Sample Correct Code:
import math 
def sum_series(number):
 total = 0
 total = math.pow((number * (number + 1)) /2, 2)
 return total


Asserts:
assert sum_series(7)==784
assert sum_series(5)==225
assert sum_series(15)==14400


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 931 of 974: 714/931 (76.69172932330827%): success