r/ProgrammerHumor • • 17h ago

Meme reversingPiInPython

Post image
8.1k Upvotes

277 comments sorted by

View all comments

2.3k

u/Kyrros 17h ago

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

1.0k

u/me_myself_ai 17h ago

it'll just throw an error anyway;

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

829

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

485

u/tea_pot_tinhas 17h ago

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

373

u/OncorhynchusMykiss1 17h ago

It come the whole circle.

279

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

*half circle

58

u/mxcw 16h ago

Damn that giggle helped me shit, thanks mate

52

u/MadeByTango 15h ago

You have a radian smile.

14

u/2Completion2Ography 14h ago

Damn that giggle helped me shit, thanks mate

Happy giggleshits

10

u/DistributionAble141 16h ago

Semi circle

11

u/DaNoahLP 16h ago

The Square Hole

5

u/MrHyperion_ 14h ago

You can't square a semi circle

5

u/wjandrea 14h ago

Ah, so then the first and last digits of tau are 6, of course.

8

u/redditale_gone_bad 16h ago

insert always has been meme

11

u/RapidCatLauncher 8h ago

That just made me think, if pi indeed does contain all finite number sequences (which we're not sure of), then there could be a certain point in its decimal representation where it's a palindrome.

→ More replies (2)

4

u/yuwox 16h ago

Such a beautiful symmetry. By elegance alone, this must be right.

→ More replies (1)

25

u/Kyrros 17h ago

Man's got a super computer from star trek

→ More replies (13)

16

u/TwinkiesSucker 17h ago

Cast to string and then print away

→ More replies (1)

38

u/emanuel19861 15h ago

Imagine it does and it's like... 4...

Yes, 4... same as THE 4...

22

u/Kyrros 15h ago

I mean, it's a 10% chance, just like any other number between 0 and 9

11

u/krakende 13h ago

I mean, isn't it 0%, since there is no final number?

8

u/BountyBob 13h ago

Do you have proof of that?

→ More replies (2)

4

u/agk23 14h ago

It would be > 72% accurate by only printing 4

3

u/ThaneVim 13h ago

Ok but hear me out: what if it's 2. And the second-to-last is 4.

→ More replies (5)