*= operator
Joel Goldstick
joel.goldstick at gmail.com
Sat Nov 21 08:58:34 EST 2015
On Sat, Nov 21, 2015 at 8:39 AM, Steven D'Aprano <steve at 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
More information about the Python-list
mailing list