generator with prompted user input?

Is there any good way to have a generator prompt for user input (with a default) as part of it's processing? Sort of like when there's a conflict, and you haven't set an argument other than 'ask', it asks you whether to overwrite the file.

Can I provide my own user input prompts for my own purposes?

Thanks for any help, Jonathan