fork download
  1. from itertools import islice
  2. from math import floor
  3.  
  4. m = [ [f'{n/ 100:.2f}%', f'{round(n / 100 * 3.42, 2):.2f}'] for n in islice(range(0, 1000, 28), 4) ]
  5. print('{0:->5} {0:->4}'.format(''))
  6. for linha in m:
  7. print('{:>5} {:>4}'.format(*linha))
Success #stdin #stdout 0.02s 9240KB
stdin
Standard input is empty
stdout
-----  ----
0.00%  0.00
0.28%  0.96
0.56%  1.92
0.84%  2.87