binary dicimal

Run Settings
LanguagePython
Language Version
Run Command
# Binary representation of 34 and the result of (1 << 5) binary_34 = bin(34)[2:] binary_1_shifted_5 = bin(1 << 5)[2:] print(f'Binary representation of 34: {binary_34}') print(f'Binary representation of (1 << 5): {binary_1_shifted_5}') # Bitwise OR operation result_binary = bin(34 | (1 << 5))[2:] result_decimal = 34 | (1 << 5) print(f'Result of 34 OR (1 << 5) in binary: {result_binary}') print(f'Result of 34 OR (1 << 5) in decimal: {result_decimal}')
Editor Settings
Theme
Key bindings
Full width
Lines