DEV Community

Discussion on: What will be the output of given python code?

Collapse
 
promikecoder2020 profile image
ProMikeCoder2020

Via the decoupling a becames 12 and b becames 5 thus their joined sum becames 17. Since 17 is a truthy value it passed the if check and thus prints True