Novice Issue

Bradley Wright bradley.wright.biz at gmail.com
Thu Apr 18 08:34:24 EDT 2013


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

Thanks Dave quite helpful as well,
now i have a clear road to go on, with regards the lists portion of my script



More information about the Python-list mailing list