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 Respuestas
+ 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 🙏