0
Can you tell me the error in this code
factorial by recursion https://code.sololearn.com/c1x27L2XwPtT/?ref=app
3 Answers
+ 3
if n = 1 you need to return 1 instead of the print statement.
in the else statement the indentation is wrong (1 space to much).
+ 2
It's recognizing * as a symbol. You might have to make your own multiple function or use one from a library
0
thanks!