Oops, try again. factorial(2) returned None, did you remember to return the result?
Now I haven't gotten to my final product yet, I'm focusing on getting result2 working, and I cannot. My idea is that result2 will print out the numbers 1, 2, 3 and so on depending on what I have wrote in. I don't know if I can multiply them afterwards, but that's a problem for later, what I want to figure out is why result2 is not adding up like I'm hoping it should
def factorial(x): z = int(x) result1 = 1 result2 = 0 num = x if x == 1: print result1 return result1 elif x > 1: while result2 >= num: print result2 result2 += 1 factorial(2) # Line for testing