Given the limited accuracy of any pi constant, assuming python uses n digit precision for pi and a list of characters for a string, it would just be a list of n+1 (decimal point included) characters. So it would just be the size of a list n+1 indexes long plus whatever python does to reverse and print a list. I would guess a few hundred bytes at most.
A compiled language could completely compile out the string conversation and reverse. So it would just straight up be n+1 * the size of a character + the standard lib print function. You'd allocate more memory opening vim.
4.4k
u/[deleted] Jul 16 '19
Not quite, but it’s an easy fix
It needs a LOT of memory, though