Hello everybody, I just wrote this code to calculate Factorial using python 3.6 on Microsoft azure jupyter notebook. it's works fine for the first time, but when I re-run the cell. I got the bellow error. could you please help me.
---------------------------------------------------------------------------
number = int (input("please enter the number\n")) if number == 0: print ("0! is 1") elif number < 0: print ("Shoud NOT be negative number") else: input = number factorial = 1 while number > 0: factorial = factorial * number number -= 1 if number == 1: break print ("The factorial of ", input, "is ", factorial)After I runing the code again I got this error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last) <ipython-input-2-aa8ffda27c1d> in <module> ----> 1 number = int (input("please enter the number\n")) 2 if number == 0: 3 print ("0! is 1") 4 5 elif number < 0: TypeError: 'int' object is not callable