0
Why The Output is 5
if(2%1-0): print('a' + str(1)) else: print(int('2') + 3)
2 ответов
+ 2
Simple.
2%1 - 0
= 0 - 0
= 0
if(0) has converted to if(false)
So the else block executed.
+ 1
Thanks Adnan Zawad Toky
if(2%1-0): print('a' + str(1)) else: print(int('2') + 3)