Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101799
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Using 'Or' |
| Date | 2016-01-16 21:29 +1100 |
| Message-ID | <mailman.38.1452940179.15297.python-list@python.org> (permalink) |
| References | <CAEFciJ0kdNY_bbmd5=1C1YfWpNRrrYdQ-RqXy8VtFyQhJn0qYA@mail.gmail.com> |
On Sat, Jan 16, 2016 at 7:24 AM, Kitten Corner <joshua.shapo@gmail.com> 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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Using 'Or' Chris Angelico <rosuav@gmail.com> - 2016-01-16 21:29 +1100 Re: Using 'Or' Steven D'Aprano <steve@pearwood.info> - 2016-01-16 22:07 +1100
csiph-web