=+ Python operator is syntactically correct -


i accidentally wrote:

total_acc =+ accuracy 

instead of:

total_acc += accuracy 

i searched net , not find anything. happened, why python think mean typing?

computers trust much. :)

this same if total_acc = -accuracy, except positive instead of negative. same total_acc = accuracy though, adding + before value not change it.

this called unary operator there 1 argument (ex: +a) instead of 2 (ex: a+b).

this link explains little more.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -