BIN s = BIN (x) Returns the binary value of x as string. Example print hex(255) ' output: FF print bin(8) ' output: 1000 print oct(16) ' output: 20