On Thursday, April 18, 2013 12:06:59 AM UTC-4, 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"
> 
> 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

Joining this group has been the smartest decision since birth 

Firstly, thanks Chris - str() [REMOVED]
and yes i would like to retain them until the end of the loop simply for 
printing or viewing purposes. [I'll DO MORE RESEARCH ON LISTS] 

Secondly, thanks Wolfgang
while raw_input not in ("quit", "q") - genius, i get your point clearly

Thirdly, thanks mark
went through the link you provided, insightful

Cheers
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to