fork download
  1. def J(a,b,i=0):
  2. h=r=''
  3. B=lambda n,b:n*'x'and B(n/b,b)+chr(48+n%b+7*(n%b>9))
  4. for c in a:h+=B(ord(c),b)
  5. while i<len(h):v=int(h[i:i+2],16);r+=chr(v)*(31<v<127);i+=2
  6. print r
  7.  
  8. J("Hello, World!",6)
Success #stdin #stdout 0.01s 8968KB
stdin
Hello, World!
6
stdout
 E001R"31$E