Question Paper - Ms Word

Hello Every One,
I know a little about python.
I am trying to accept questions from user and convert them into a question paper format in ms word.
some thing like wizard.
Thank you - PhaniKumar

Hi, Phani. Just a minutes ago I was thinking something about decorators (@…) in Python. I wondered if decorators can only be applied to functions or also to pieces of code like a while loops for example. In other words, if you can only decorate functions or methods and nothing else.