answersLogoWhite

0

How do you decrement on python?

Updated: 8/10/2023
User Avatar

Wolfaaron

Lvl 1
12y ago

Best Answer

-=

Example:

variable = 5

variable -= 2

will out put 5

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

+=

example:

var = 3

var += 2

It will output 5

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you decrement on python?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why are increment and decrement used in c?

To increment or decrement a value


Decrement operators programing in java?

The decrement operator is simply the double minus, attached to a variable:a--;or:--a;The two examples above are identical, and both are equivalent to:a -= 1;or:a = a - 1;However, if the decrement operator is used as part of more complicated expressions, in the --variable version, the decrement is done before anything else, while in the variable-- version, the decrement is done after anything else.


What is the opposite word of improvement?

Decrement By Nagaraj naga.ambati@gmail.com Decrement By Nagaraj naga.ambati@gmail.com


What is the opposite of the word increment?

The process of decreasing in number, size, quantity, or extent.Decrease, loss, decrement, reduction, diminution, decline, decay, etc. Decrement.


How do you apply the decrement factor if you find that the contractor appears to have overestimated the proposal price?

Multiply the decrement factor by the total cost of all sampled items


Which arithmatic operations can be performed on pointers?

Increment and decrement only.


What is the advantage of using file compression?

decrement in file size.........


What is the difference between predecrement and postdecrement operator in c?

The order of the operations: --p means: decrement the variable, then fetch the new value p-- means: fetch the old value, then decrement the variable


What is a Python that starts with the letter R?

Reticulated Python


How can you offset a pointer in C?

Increment or decrement the pointer by the required offset.


Which network device decrement ttl value?

I believe the router.


How a python reproduces?

In a python