+ 3

WHO can explain That?

what does | do in python? See example Code. https://code.sololearn.com/c7ddu5HswU6o/?ref=app x = 5 y = 3 print(x|y) a = 5 b = 2 print(a|b)

23rd Aug 2021, 8:00 AM
Angela
Angela - avatar
3 Respostas
+ 8
23rd Aug 2021, 8:03 AM
Abhay
Abhay - avatar
+ 2
________________________ |char | decimal | binary | |_____|_________|________ | | 5 | 53 | 110101 | | 3 | 51 | 110011 | |_____|_________|________ | | 7 | 55 | 110111 | |_____|_________|________ | | 5 | 53 | 110101 | | 2 | 50 | 110010 | |_____|_________|________ | | 7 | 55 | 110111 | |_____|_________|________ |
23rd Aug 2021, 8:39 AM
SAN
SAN - avatar
0
I have written a little code which I hope will help you understand. https://code.sololearn.com/c16jc5Iod9IF/?ref=app
23rd Aug 2021, 9:30 AM
Rik Wittkopp
Rik Wittkopp - avatar