JustAnotherCatgirl

Hello world.py

Apr 3rd, 2023 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. import math
  2.  
  3. def func(n):
  4.     result = (-10303.0 / 9979200.0) * math.pow(n, 11) + (4073.0 / 64800.0) * math.pow(n, 10) - \
  5.     (67169.0 / 40320.0) * math.pow(n, 9) + (108929.0 / 4320.0) * math.pow(n, 8) - \
  6.     (36326569.0 / 151200.0) * math.pow(n, 7) + (32342993.0 / 21600.0) * math.pow(n, 6) - \
  7.     (445599449.0 / 72576.0) * math.pow(n, 5) + (210189113.0 / 12960.0) * math.pow(n, 4) - \
  8.     (3951504773.0 / 151200.0) * math.pow(n, 3) + (20582609.0 / 900.0) * math.pow(n, 2) - \
  9.     (12420907.0 / 1540.0) * n + 72
  10.  
  11.     return round(result)
  12.  
  13. for i in range(0, 12):
  14.     print(chr(func(i)), end="")
Advertisement
Add Comment
Please, Sign In to add comment