r/learnpython•
Heskinammo

Python Symbols

I'm confused about what the =- sign does.

>>> x = 3
>>> if 2 < x:
             x =- x

>>> x 
       -3

What happened here?

Posted Jun 17, 2017, 10:56 AM UTC

32
Loading comments…