Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Using 'Or' Date: Sat, 16 Jan 2016 21:29:31 +1100 Lines: 10 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de C5okCdB31VPqHHAlYT9dyg4XoEyAkJOkn2kG8xrr4dCQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'cc:addr :python-list': 0.09; 'example:': 0.10; 'python': 0.10; 'jan': 0.11; "'or',": 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sequence,': 0.16; 'wrote:': 0.16; 'project,': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'trying': 0.22; 'am,': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'far,': 0.29; 'other,': 0.29; "i'm": 0.30; 'help!': 0.30; 'correctly': 0.34; 'received:google.com': 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'version': 0.38; 'received:209': 0.38; 'hi,': 0.38; 'does': 0.39; '3.5.1': 0.84; 'chrisa': 0.84; 'subject:Using': 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-type; bh=d38ypukTfgkidPClyvFYia02jPR4zR2sxdBHFgVQpsk=; b=aGPzp8R8TmQteMH0uGz4YFUPRwA/rzIsBUULAgFnZ4fmqRYAT9cjauIk5c55jtr0mB HqjO89rdudaH+TuHwMdOM7cc2k4ewvtHcxTcs01aLta6+nobyu6QkYymPBR7rEsYt7kY AwW/dV9PKtgo9bK2YfHjS7VAU/ikUXq3Lm58WX7b8fFJFESdwnqz2nyA09aht4vVghEb jhqAnPKuYTe4cLcQm4QpCy3ZT2lW4Q9q1fNJ9V8BBhcStV3hrkclf4o4GSPYPSoSob03 GszfWFBiCEC+XPbGVE090p01BVZM9N0zb6jlXl+lHrMjST9gTKEBu23VAbYgdJazG9YY 0Kiw== 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-type; bh=d38ypukTfgkidPClyvFYia02jPR4zR2sxdBHFgVQpsk=; b=L7gU5UcB9E25Ig045EnWK7O3gwNVIR5bkyQc8g0DO50B+T5jhbgY+/wrjBd22FGoO+ SuLBZmR54makMuBTcxC27gWr0RYriFQAWY4eXaOCGhQUqBSugPhPvbLbbBDpz23XH3dO kj0UNGmISUNVeUSgTzl0Us4KzxycWYpKxR/Vqc+pHOj1Jct3SulFusZNRshB+ayC/QGa 35NaZRmq/uYdJt2GJ70RT3zuZHR7P41eefSamgKqjj35oTLC11mUyyfdLt6djSmHqOMa MOFV0p95rmuu7SE6ETBbwcFyOA2afPrvQKKNGg+RXxzjkjKj4Xm+j4kudb57+vSoMDsQ eYaA== X-Gm-Message-State: AG10YOQJnzY3VlYv/2KA3wdFr1jyIIiIW5dtBWJ/ogltgBelsvA+AdViAe5TONUJelhHG34orcwOhY/PO2nW0Q== X-Received: by 10.50.70.38 with SMTP id j6mr2848100igu.13.1452940171410; Sat, 16 Jan 2016 02:29:31 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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:101799 On Sat, Jan 16, 2016 at 7:24 AM, Kitten Corner wrote: > Hi, I have python version 3.5.1 and I am working on a project, I'm trying > to make it by using the 'or' sequence, I'm trying to make it do 1 thing or > the other, here's an example: print('i like pie' or 'i like donuts'), it > only does the thing that's before the 'or', please help! Under what circumstances do you want it to take the other? So far, Python is correctly printing out one or the other of them. ChrisA