...

/

Solution Review: Write a Square Function

Solution Review: Write a Square Function

This review provides a detailed explanation of the solution to the "Write a Square Function" challenge.

Solution

Let’s understand the solution of the challenge in Powershell and Python.

Python

Press + to interact
def square(num):
return num*num
result = square(5)
print(result)
...