On 18/04/2013 05:06, Bradley Wright wrote:
Good Day all, currently writing a script that ask the user for three things;
1.Name
2.Number
3.Description
I've gotten it to do this hurah!
print "Type \"q\" or \"quit\" to quit"
You've had a couple of answers already so I'll just point out that the
above line could be.
print 'Type "q" or "quit" to quit'
Looks prettier if nothing else :)
while raw_input != "quit" or "q":
print ""
name = str(raw_input("Name: "))
number = str(raw_input("Number: "))
description = str(raw_input("Description: "))
but here a few things, can anyone help me on figuring out how to at the users
whim print out all of the names, numbers and descriptions. this is sort of an
information logger.
additionally, minor issue with getting script to stop when q or quit is typed
any help would be greatly appreciated
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list