Solution Review: Square the Factorials
The solution to the 'Square the Factorials' challenge.
We'll cover the following...
Press + to interact
def factorial(n):if n == 1 or n == 0:return 1else:return n*factorial(n-1)def square_factorial(n):return [(lambda a : a*a)(x) for x in (list(map(factorial, range(n))))]print(square_factorial(6))
Explanation
In the code above, according to the problem statement, there are two parts: the ...
Access this course and 1400+ top-rated courses and projects.