0
Hey guys I got an assignment from my school but I don't understand how to solve it I tried many ways.
Complete the function definition so it returns the square of the product of the parameters, so sqrProd(2, 5) returns (2*5)*(2*5) = 100. Please help. This is what I tried... def sqrProd(x,y): return (x*y)*(x*y) for n in [2, 5]: print sqrProd(x,y)
4 Respostas
+ 3
Mehul sathish just run your functions with arguments:
prints(sqrProd(2,5))
don't use for loop, and you are using it in wrong way.
+ 2
Thank you akshay.... I have just started learning python. Thanks a lot👍
0
I edited it