Untitled

Run Settings
LanguagePython
Language Version
Run Command
a = 0b1110 b = 0b101 print (a) print (b) c = a|b print (c) def fn(c): d = str() while (c): d += str(c % 2) c = c // 2 print(d) d = d[::-1] return '0b' + d def aorb(a,b): d = str() while (a or b): d += str('1' if (a % 2 or b % 2) else '0') a = a // 2 b = b // 2 print(d) d = d[::-1] return '0b' + d d = fn(c) e = aorb(a, b) print(d) print(e)
Editor Settings
Theme
Key bindings
Full width
Lines