+ 4

Why python dont have postincrement and preincrement?

2nd Aug 2018, 3:12 AM
Right Liar
4 Respostas
+ 6
There are several opinions about it, although as I am not involved with the Python community I can not say much about it. Even so, here you can get information: https://stackoverflow.com/questions/3654830/why-are-there-no-and-operators-in-python
2nd Aug 2018, 3:21 AM
Mickel
Mickel - avatar
+ 8
Found it today that Python doesn't have it.. 🤔So how do increment?? a=a+1???
2nd Aug 2018, 12:01 PM
$hardul B
$hardul B - avatar
+ 2
just use a += 1
2nd Aug 2018, 2:56 PM
Cirefy
- 1
mla ny mhit
14th Aug 2018, 10:18 AM
Chaitanya Mhatre