fork download
  1. f=lambda n:n=="#"or(n[0]=="#")*all(any([47<ord(c)<58,64<ord(c)<91,ord(c)==95,96<ord(c)<123])for c in n[1:]+"0")*~(47<ord(n[1])<58)
  2. print(f("#d"))
  3. print(f("#"))
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
-1
True