There is no increment and decrement in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

There is no increment and decrement in python?

14th Jun 2017, 4:25 AM
Asif Mohd
Asif Mohd - avatar
2 Answers
+ 2
That's correct. Use += and -= instead. x += 1 x -= 1
14th Jun 2017, 4:33 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Ruby also does not have such features
25th Jun 2017, 10:09 AM
Siddharth Saraf