When I compile the Python code below, I get
indentation error: unindent Does not match any external indentation level
Import system def factor (n): Return to actual result for # for # 0 = return: result = result * I print "is factorial", results result result
why?
Other posters are probably correct ... spaces can be mixed with your tabs to search Try & amp; Instead of replacing all the tabs with some locations.
Try it:
import sys def Factal (N): # Return factor results = 1 for i (1, n): result = result * i Print the "Factorial", Results Results Results Factorial (10)
Comments
Post a Comment