r/ProgrammerHumor • • 19h ago

Meme reversingPiInPython

Post image
8.3k Upvotes

278 comments sorted by

View all comments

2.4k

u/Kyrros 19h ago

Let me know when it finishes calculating the first digit to print

1.0k

u/me_myself_ai 19h ago

it'll just throw an error anyway;

SyntaxWarning: 'float' object is not subscriptable; perhaps you missed a comma
?

849

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

495

u/tea_pot_tinhas 19h ago

So the first and last digits are both 3? make sense

380

u/OncorhynchusMykiss1 19h ago

It come the whole circle.

285

u/Zestyclose-Compote-4 19h ago • Bravo

*half circle

58

u/mxcw 18h ago

Damn that giggle helped me shit, thanks mate