fork download
  1. import math
  2. lst1 = []
  3. lst2 = []
  4.  
  5.  
  6. i = 0
  7. sz = len(lst1)
  8.  
  9. while i<sz:
  10. a = lst2[i]-lst1[i]
  11. b = math.ceil((a/lst1[i])*100)
  12. print(a,'(',b,'%)')
  13. i+=1
  14.  
Success #stdin #stdout 0.02s 7160KB
stdin
45
stdout
Standard output is empty