I read the instructions and went with this -
---- if x == 0 :
---- elif x == 1:
--------return x * factorial(x - 1)
Reading some of the other posts - https://discuss.codecademy.com/t/5-factorial/59777/4, https://discuss.codecademy.com/t/5-factorial/59479.
I was confident when I got my green bookmark
but now after reading the above, doubt set in.
Somehow my approach seems too simple, I do not know if others have experienced this. You go with your gut and then get overwhelmed by different words like - 'for' 'while' 'loops'.
These lessons are part of 'Practice Makes Perfect'. I know there is more then one way to achieve the results.
Was the aim to achieve the answer using specifically - for,while?