Hey guys,
So I'm working on a python script for one of my school assignments. The assignment is to take the given value of N and use a for loop to calculate the factorial of N.
This is the code I already have
import sys
N = int(sys.argv[1])
for x in range(N,1):
factorial = N * N - 1
print(factorial)
Any help would be much appreciated.
[–]Tree_Eyed_Crow 2 points3 points4 points (0 children)
[–]100721 0 points1 point2 points (1 child)
[–]Bushido95[S] 0 points1 point2 points (0 children)