Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'things,': 0.09; 'typed': 0.09; "'type": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'subject:Issue': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; 'looks': 0.24; 'sort': 0.25; "i've": 0.25; 'script': 0.25; 'appreciated': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'getting': 0.31; 'url:wiki': 0.31; 'minor': 0.31; 'wright': 0.31; 'anyone': 0.31; 'url:python': 0.33; 'could': 0.34; 'but': 0.35; "i'll": 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'how': 0.40; 'read': 0.60; 'numbers': 0.61; "you're": 0.61; "you've": 0.63; 'information': 0.63; 'name': 0.63; 'charset:windows-1252': 0.65; 'here': 0.66; 'gotten': 0.74; 'day': 0.76 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Novice Issue Date: Thu, 18 Apr 2013 11:10:51 +0100 References: <0fa050c1-3a00-4c17-9fa6-b79a22485c7a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-43-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <0fa050c1-3a00-4c17-9fa6-b79a22485c7a@googlegroups.com> X-Antivirus: avast! (VPS 130417-1, 17/04/2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366279865 news.xs4all.nl 2265 [2001:888:2000:d::a6]:46462 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43816 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