I am really confused about what to do, I don't understand the instructions please help!!!
Just like the previous exercise, were you had to return the sum of digits. For example digit_sum(12345) returns 15, in this exercise you have to do something similar but instead
factorial() must take a number and return this number multiplied by numbers lower than itself such as
factorial(3) will return 1 * 2 * 3 which is 6. consider having the number you input inside the factorial function multiplied by factorial(x - 1) inside a for loop and return it.
I hope this answered your question
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.