logo

Crowdly

Browser

Add to Chrome

The following function is supposed to compute and display the value of n-factori...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The following function is supposed to compute and display the

value of n-factorial for integers greater than 0.

def factorial(n) :
   result = 1
   for i in range(1, n + 1) :
     result = result * i

What is wrong with this function?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on elearn.squ.edu.om?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome