+ 3
Why is the output 30?
def f(m,n): return m|n print (f(10,20)) Output 30 Thank you for your help!
3 ответов
+ 13
Because you using bitwise* OR
10100
01010 ->
11110
Try to replace it to "||"
+ 9
ur welcome
+ 2
Thank you 😀
def f(m,n): return m|n print (f(10,20)) Output 30 Thank you for your help!