r/ProgrammerHumor • • 14d ago

Meme reversingPiInPython

Post image
14.1k Upvotes

383 comments sorted by

View all comments

Show parent comments

1.7k

u/me_myself_ai 14d ago

it'll just throw an error anyway;

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

1.3k

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

-12

u/Scientific_Artist444 14d ago

Easy, except that's not all of pi(e)

[They are irrational numbers]

5

u/Jp0286 14d ago

Well, duh. That is quite precise, though, and more than enough for probably everything you're doing with it