(Python) Implementing incrementation
3

-~i


Just good ol' unary - and bitwise-NOT.

Demo

&gt;&gt;&gt; i = 3
&gt;&gt;&gt; -~i
4
&gt;&gt;&gt; i = 0
&gt;&gt;&gt; -~i
1
&gt;&gt;&gt; i = -3
&gt;&gt;&gt; -~i
-2