On Sat, Nov 21, 2015 at 8:39 AM, Steven D'Aprano <st...@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 -- https://mail.python.org/mailman/listinfo/python-list