What does *= mean in Python and why is it used over =?

What does *= mean in Python and why is it used over =?

Thats the same as:

bill = bill * 1.15

You could also do per example:

bill += 1.15

Which is the same as:

bill = bill + 1.15

What does *= mean in Python and why is it used over =?

Leave a Reply

Your email address will not be published.