
if __name__ == '__main__':
    option = 'y'
    while option == 'y':
        value = input('Give me an integer to check if it is a divisor of 42: ')
        try:
            is_divisor = (42 % int(value) == 0)
            print(is_divisor)
        except ZeroDivisionError:
            print("Uh-oh, invalid input: 0 cannot be a divisor of any number!")
        except ValueError:
            print("Type mismatch, expecting an integer dude!")
        finally:
            print("Now let's try another number...")
        option = input('Would you like to continue (y/n): ')
