Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104156
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Phyton |
| Date | 2016-03-06 16:56 +0000 |
| Message-ID | <mailman.254.1457283607.20602.python-list@python.org> (permalink) |
| References | <CO2PR19MB0042C9C1DFF56E6DD06FF5F0ABBF0@CO2PR19MB0042.namprd19.prod.outlook.com> |
On 05/03/2016 15:41, Diego ... wrote: > Hello! I have a question in an exercise that says : Write an expression to determine whether a person should or should not pay tax . Consider paying tax people whose salary is greater than R $ 1,200.00 > > I do not know how to mount the logical expression !!! > > It's like: > > salary = 1250 > tax = Not True > salary > 1200 or not tax ???? > Start here https://docs.python.org/3/tutorial/controlflow.html#if-statements. You won't need your 'tax' variable if all you're doing is deciding whether or not they pay tax. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Phyton Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-06 16:56 +0000
csiph-web