Python bin() oct() hex()

Run Settings
LanguagePython
Language Version
Run Command
print("Python built-in functions: bin(), oct(), & hex()") # Integer value i = 255 print(bin(i)) print(oct(i)) print(hex(i)) # 0b11111111 # 0o377 # 0xff print(type(bin(i))) print(type(oct(i))) print(type(hex(i))) # <class 'str'> # <class 'str'> # <class 'str'>
Editor Settings
Theme
Key bindings
Full width
Lines