secretcodes_ord_chr

Run Settings
LanguagePython
Language Version
Run Command
print("Letters to ASCII") letter = "a" number = ord(letter) print(f"The letter {letter} in ASCII is {number}.") binary = bin(number) print(f"The number {number} in binary is {binary}. [Ignore 0b.]") print() # print() print("ASCII to Letters") # number = 65 letter = chr(number) print(f"The integer {number} in ASCII is {letter}.") binary = bin(number) print(f"The number {number} in binary is {binary}. [Ignore 0b.]")
Editor Settings
Theme
Key bindings
Full width
Lines