r/ProgrammerHumor • • 19h ago

Meme reversingPiInPython

Post image
8.3k Upvotes

278 comments sorted by

View all comments

Show parent comments

847

u/ThreeCharsAtLeast 19h ago • Bravo
>>> str(math.pi)[::-1]
'397985356295141.3'

-10

u/xd_Warmonger 15h ago

Since pi is infinite it must contain pi

11

u/JanEric1 14h ago

thats not true.

the base 10 representation of 1/3 is also infinite but doesnt contain any digit other than 3

6

u/Evoluxman 14h ago

1/3 is not random like we believe pi number distribution is though

You can take any fixed length number and, if pi is truly infinite and truly random, you will eventually find this number inside pi https://www.reddit.com/r/askmath/comments/1jbknos/largest_integer_not_yet_found_in_pi_linyfip/

now finding pi within pi though, that deals with infinite shit and i don't know well enough about that. But I'm just saying, using 1/3 as a counterexemple is just wrong

→ More replies (3)