There is no increment and decrement in python? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

There is no increment and decrement in python?

14th Jun 2017, 4:25 AM
Asif Mohd
Asif Mohd - avatar
2 ответов
+ 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