0
What the use of the pipe | with numbers in python?
For example this code: a = 5|5 b = 10|5 ab= a+b print (ab) >> this evaluates to 20 Could any one explain how did this happen?
2 Answers
+ 2
First you should change 5 into binary numbers then add them
e.g
5 into binary
10 into binary
https://www.sololearn.com/learn/4073/?ref=app
+ 1
SÄñtösh Maravi
Thank you very much đ