#
#  Program computes factorial 
# 
#num = int(raw_input('Enter integer to compute factorial :'))
def factorial(num):
    """ Returns n! for n """
    prod = 1.0
    for i in range(1,num +1):
        prod = prod*i 
    return prod

list1 = [3,5,7,11,13,17,19]
for x in list1:
    x_fact = factorial(x)
    #  Print results 
    print ('\n  x =  %d,  x! =  %d' % (x, x_fact))   

# Challenge exercises:
# Create factorial function which accepts integer n and returns n!
# Add loop to call function to compute and print factoricals of numbers in list of primes: [3,5,7,11,13,17,19]

