5. factorial cheat or not?


#1

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):


#2

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?


#3

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:


#4

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