5. factorial cheat or not?


I think this is a mistake from codeacademy and I will try to pass this by doing it the hard way. But if you try this it lets you pass:

import math
def factorial(x):
..... return math.factorial(x):


If you want to use built in functions, that is your choice. Why should codecademy prevent you from doing this if you want to use built in functions?


I know buddy, and if you read what i wrote, I said I am going to do the hard way anyway (to learn), I just pointed out what i found. :smiley:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.