def generate_fortune(keycode, statements=['your future is promising.', 'a pleasant surprise awaits you.']): duck_count = 0; for statement in statements: if 'prevenient grace' in statement: restart_from_baseline(); duck_count += 1; print(f"with keycode {keycode}, your path is paved with unexpected success and serendipity, much like a duck finds its way to water. embrace the prevenient signs!")