fork(1) download
  1. f=lambda i:map(round,[i,i*4/3,i*8/9,i*8/9+1])
  2.  
  3. # code length output:
  4. print("This Python 3 code is {} bytes long.".format(len(
  5. 'f=lambda i:map(round,[i,i*4/3,i*8/9,i*8/9+1])'
  6. )))
  7.  
  8. # tests:
  9. print(9, list(f(9)), [9, 12, 8, 9])
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
This Python 3 code is 45 bytes long.
9 [9, 12, 8, 9] [9, 12, 8, 9]