+ 7

In this code, Why line no. 4 is valid in python???

https://code.sololearn.com/cphc9KzsIOz3/?ref=app

27th Aug 2020, 7:04 AM
Anonymous
Anonymous - avatar
3 Respostas
+ 8
It is not decrementing the value of "a" at all. It is just reversing the sign of "a" twice and then assigning that value to "b" You can assume it to be like this:- b = -(-a) Which is same as b = a
27th Aug 2020, 7:15 AM
Arsenic
Arsenic - avatar
+ 5
27th Aug 2020, 7:24 AM
Anonymous
Anonymous - avatar
+ 3
@Arsenic is saying correctly
27th Aug 2020, 7:20 AM
Avinash Kumar
Avinash Kumar - avatar