What is the difference between ‘+=’ and ‘=+’? [duplicate]

i+=1 is the same as i=i+1, whereas
i=+1 just means i=(+1).

Leave a Comment