Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99210
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: *= operator |
| Date | 2015-11-21 08:58 -0500 |
| Message-ID | <mailman.36.1448114322.2291.python-list@python.org> (permalink) |
| References | <a76b1b5b-4321-41bb-aeca-0dac787752d9@googlegroups.com> <56507422$0$1594$c3e8da3$5496439d@news.astraweb.com> |
On Sat, Nov 21, 2015 at 8:39 AM, Steven D'Aprano <steve@pearwood.info> wrote: > On Sun, 22 Nov 2015 12:20 am, Cai Gengyang wrote: > > > Does bill *= 1.08 mean bill = bill * 1.15 ? > > No. It means `bill = bill * 1.08`, not 1.15. > > > > -- > Steven > > -- > https://mail.python.org/mailman/listinfo/python-list > Others have answered, but don't forget to try things like this yourself in the interactive python shell of your choice: Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> bill = 1 >>> bill *=1.08 >>> bill 1.08 >>> -- Joel Goldstick http://joelgoldstick.com/stats/birthdays
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
*= operator Cai Gengyang <gengyangcai@gmail.com> - 2015-11-21 05:20 -0800
Re: *= operator BartC <bc@freeuk.com> - 2015-11-21 13:37 +0000
Re: *= operator Steven D'Aprano <steve@pearwood.info> - 2015-11-22 00:39 +1100
Re: *= operator Joel Goldstick <joel.goldstick@gmail.com> - 2015-11-21 08:58 -0500
Re: *= operator "Frank Millman" <frank@chagford.com> - 2015-11-21 15:46 +0200
Re: *= operator Cai Gengyang <gengyangcai@gmail.com> - 2015-11-21 05:55 -0800
csiph-web