Answer break down "spoiler" 5/15 is_fact


#1

def factorial(x):
f = 1
for i in range(1, x +1):
f *= i
return f

x = 34

with this I can pass the task but I cant print f or i. I think My code is wrong.


#2

functions only executed when called


#3

for i in diot:
print i[diot]
thanks I called the function correctly it worked


#4

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