+ 1

Is ++ and-- is used in python?

25th May 2019, 5:06 PM
Vicky
Vicky - avatar
3 Antworten
+ 4
please use the search bar increment and decrement operators have been explained vividly
25th May 2019, 7:01 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
You can use var += 1 or var -=1 but python doesn’t have ++ or — to my knowledge.
25th May 2019, 5:11 PM
George
+ 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
25th May 2019, 6:18 PM
Trigger
Trigger - avatar