the assignment is 'We provide you with a value N. Calculate N! and output only the final result.' Can not figure this out for the life of me and I do not understand why my code will not run in the least.
# Get N from the command line
import sys
N = int(sys.argv[1])
def factorial(N):
num = 1
while N >= 1:
num = num * N
N = N - 1
print(N)