def getFacNumList(n: int):
result = list()
for i in range(1, n + 1):
x = 1
for y in [z for z in range(1, i + 1)]:
x *= y
result.append(x)
return result
def dispFacNumList(flist: list):
msg = 'Factorial numbers are:'
for x in range(len(flist)):
msg += f'\nn={x + 1}\t: n!={flist[x]}'
print(msg)
dispFacNumList(getFacNumList(4))
def getFacNumList(n: int):
result = list()
for i in range(1, n + 1):
x = 1
for y in [z for z in range(1, i + 1)]:
x *= y
result = result + [x]
return result
[z for z in range(1, i + 1)]
for y in [z for z in range(1, i + 1)]:
for i in range(1, n + 1):