Failure to get nonnegative integer single number : number = int(input('Enter a nonnegative integer: '))

product=1
for i in range(number): 
    product = product * (i+1)
    print(product)

The result is the nonnegative integer is
1
2
6
24...
5040
But I only need the nonnegative integer of 7 which is 5040, how do I get that?