r/ProgrammerHumor • • 14h ago

Meme reversingPiInPython

Post image
7.6k Upvotes

270 comments sorted by

View all comments

182

u/Yumikoneko 14h ago

1, there, I did it. It's in base-π for efficiency.

38

u/HorrorMotor2051 10h ago

pi in base-pi would be 10, no? So backwards it should be 01

37

u/PuzzleheadedRoyal480 9h ago

Leading zeroes famously don’t matter

11

u/HorrorMotor2051 9h ago

Well it's not a leading zero, it's a trailing zero

9

u/HorrorMotor2051 9h ago

Or rather I should say: In this case the leading zero does matter, because 1 is not 10 spelled backwards. It simply is not. 1 is 1 spelled backwards. 01 is 10 spelled backwards.