def Factorial(n):
    if n <= 1:
        return 1
    else:
        return n * Factorial(n-1)

def Main():
    
    # initialized to y to start program
    userChar = 'y' 
    
    # loops if userChar is y, anything else will exit program
    while userChar == 'y': 
        try:
            userNum = int(input('Enter a number to find the factorial: '))
            print('{}! = {}'.format(userNum, Factorial(userNum)))
            userChar = input('Do you wish to enter another number (y/n)?')
        except:
            print('Please enter an integer')
    print('Goodbye!')
    
Main()

0b5e4bb220be4a1abaaff1d7ac7d2ebe959f2920
<mask token>

<mask token>


def Main():
    userChar = 'y'
    while userChar == 'y':
        try:
            userNum = int(input('Enter a number to find the factorial: '))
            print('{}! = {}'.format(userNum, Factorial(userNum)))
            userChar = input('Do you wish to enter another number (y/n)?')
        except:
            print('Please enter an integer')
    print('Goodbye!')


<mask token>

def Factorial(n):
    if n <= 1:
        return 1
    else:
        return n * Factorial(n - 1)


def Main():
    userChar = 'y'
    while userChar == 'y':
        try:
            userNum = int(input('Enter a number to find the factorial: '))
            print('{}! = {}'.format(userNum, Factorial(userNum)))
            userChar = input('Do you wish to enter another number (y/n)?')
        except:
            print('Please enter an integer')
    print('Goodbye!')


<mask token>

def Factorial(n):
    if n <= 1:
        return 1
    else:
        return n * Factorial(n - 1)


def Main():
    userChar = 'y'
    while userChar == 'y':
        try:
            userNum = int(input('Enter a number to find the factorial: '))
            print('{}! = {}'.format(userNum, Factorial(userNum)))
            userChar = input('Do you wish to enter another number (y/n)?')
        except:
            print('Please enter an integer')
    print('Goodbye!')


Main()

def Factorial(n):
    if n <= 1:
        return 1
    else:
        return n * Factorial(n-1)

def Main():
    
    # initialized to y to start program
    userChar = 'y' 
    
    # loops if userChar is y, anything else will exit program
    while userChar == 'y': 
        try:
            userNum = int(input('Enter a number to find the factorial: '))
            print('{}! = {}'.format(userNum, Factorial(userNum)))
            userChar = input('Do you wish to enter another number (y/n)?')
        except:
            print('Please enter an integer')
    print('Goodbye!')
    
Main()
