+ 1
Is ++ and-- is used in python?
3 Antworten
+ 4
please use the search bar increment and decrement operators have been explained vividly
+ 2
You can use var += 1 or var -=1 but python doesn’t have ++ or — to my knowledge.
+ 2
No, incrementation in Python is handled by the += and -= signs. Other signs used are *=, /= and %=
Im pretty sure there are others but Ive not encountered them