Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: help with program Date: Sun, 27 Mar 2016 09:48:47 +1100 Lines: 27 Message-ID: References: <1392737302.749065.1459024715818.JavaMail.yahoo.ref@mail.yahoo.com> <1392737302.749065.1459024715818.JavaMail.yahoo@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de LSZgBvcCRIzAwfpCp2oJtg8BUEtUuvAIwtr676f6fVNQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'versions.': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'ast': 0.09; 'exit.': 0.09; 'python.': 0.11; '2016': 0.16; 'appreciated!': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle,': 0.16; 'jerry': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:program': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'trying': 0.22; 'am,': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'there.': 0.30; 'code': 0.30; 'folder': 0.30; 'another': 0.32; 'screen': 0.32; 'though,': 0.32; 'run': 0.33; 'point': 0.33; 'changed': 0.33; 'third': 0.33; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'done': 0.35; 'should': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'faster': 0.36; 'totally': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:209.85.213': 0.37; 'version': 0.38; 'received:209': 0.38; 'end': 0.39; 'google': 0.39; 'subject:with': 0.40; 'your': 0.60; 'total': 0.62; 'bring': 0.62; 'details': 0.62; 'latest': 0.64; 'mar': 0.65; 'results.': 0.67; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-transfer-encoding; bh=F+xuHF725no3c+Rcwkbj+gzOMxLSm3poM+2wir02xnI=; b=kXNGu91TWSI5srigiRQvq3KlxJBOwFAgr197TnKnCpk/UPJA3hUDBOgiRlH/gX5xqN peMrsqjuMpxGLy8Xp6ba8SKBFUJ2T6/qovz0kdLXrhSyDi1FO49XI0Dugwbf3ioRVoGZ zy/B+kd3+bdf4PAMtxxInJRlgvWvgyxVHhFS0cEkHhf+D8kno5+clvsuN3hJhkKJSGXl PODPtahBbF+95Pn+XAI2vxFhx5JTfvEUSUdhljjwCdJYhK2vDNN4+VusqUwAOu+vlbWc ZC/axoKSvrV+u9GNvUvSO8oFMd6+MbylXc3tHIyKNg5VoLRqTBBqUOdo6q0I+jMtrSYb M/Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-transfer-encoding; bh=F+xuHF725no3c+Rcwkbj+gzOMxLSm3poM+2wir02xnI=; b=P8UtGu6kzlN5cC3dtpnLCihBLcPhUbny4IqBN8QfdPquJlRA9yHyJQyaSuzSXNyX9U sQ6BgX2zO/2BRGJwiFK51YqzQRHFL29ZHYhuMf7b7ateyenMVNI5YVYQVCqBDqhBQPjC RmMThfwccJB+r/w0mB2R9Gk49kO9vyZS1U11spAgbNew7LUVT7sKFIB+wRzkDzShmM7i ZaQdZOAzRsworOXOQk1/K/PVkL4unvcjdP0ft4DnVZIKUFeh19mEpGtaivja429MsvlS M2A23EZlp9aB8OE3VfGLwf8RaiUCDvJ7L5tnDVjeTdlrEp2RpHiWtQiBieR+53E8gNK1 Kx5A== X-Gm-Message-State: AD7BkJJcx1GozFEjfq7aMqi7EODMLU7HMzCTb36oN5HW+zc9dyS4MLK5bnFgCw8q6qU4tdUxd7rfq+hWVXEvlQ== X-Received: by 10.50.43.226 with SMTP id z2mr3271890igl.94.1459032527484; Sat, 26 Mar 2016 15:48:47 -0700 (PDT) In-Reply-To: <1392737302.749065.1459024715818.JavaMail.yahoo@mail.yahoo.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105789 On Sun, Mar 27, 2016 at 7:38 AM, Jerry Martens wr= ote: > hi im trying to run this program and it opens a screen really ast and clo= ses it faster withou any results. im totally a noob. everything i google is= confusing. do i need to place this is in a folder or just run from command= line? i have the latest version of python. im running win 7. any help woul= d be appreciated! or could you please point me to a good forum for total no= obs?thank you for your time and effort! > Hi! There are a few ways you could do this. One is to run it from the command line. Another is to put this line at the end of the program: input("Press enter to exit. ") That should bring up the same screen (called a "console") and then have it wait until you're done reading it. A third way is to edit your code using Idle, and run it from there. I haven't done that in a while, though, so the details might have changed in the recent versions. All the best! ChrisA