On 4/2/07, Steve <[EMAIL PROTECTED]> wrote: > Hi, > > I've created a Python program that a user enteres one line of text which > will then create an acronym from that text. > > What I want to add to the program is the abilty to rerun this process (where > the user enteres another line of text) until the user has had enough and > enters a blank line which would then end the program. > > Can anyone help with this? > > thanks > > -- > http://mail.python.org/mailman/listinfo/python-list > Untested:
if __name__ == "__main__": userinp=raw_input("Query>") while userinp: callmyabbrvfunction(userinp) userinp=raw_input("Another Query>") print "Exit: You have entered empty string !" cheers, -- ---- Amit Khemka -- onyomo.com Home Page: www.cse.iitd.ernet.in/~csd00377 Endless the world's turn, endless the sun's Spinning, Endless the quest; I turn again, back to my own beginning, And here, find rest. -- http://mail.python.org/mailman/listinfo/python-list