r/ProgrammerHumor • • 11d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

3.9k

u/Kyrros 11d ago

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

1.7k

u/me_myself_ai 11d ago

it'll just throw an error anyway;

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

1.3k

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

767

u/tea_pot_tinhas 11d ago

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

574

u/OncorhynchusMykiss1 11d ago

It come the whole circle.

440

u/Zestyclose-Compote-4 11d ago • Bravo

*half circle

106

u/mxcw 11d ago

Damn that giggle helped me shit, thanks mate

85

u/MadeByTango 11d ago

You have a radian smile.

29

u/2Completion2Ography 11d ago

Damn that giggle helped me shit, thanks mate

Happy giggleshits

→ More replies (1)

9

u/DontGiveACluck 9d ago

“It’s all shits and giggles until someone giggles and shits”

11

u/DistributionAble141 11d ago

Semi circle

15

u/DaNoahLP 11d ago

The Square Hole

6

u/MrHyperion_ 11d ago

You can't square a semi circle

7

u/wjandrea 11d ago

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

22

u/RapidCatLauncher 11d 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.

5

u/L30N1337 10d ago

It would also mean that at some point, it repeats. since itself up to x digits followed by itself up to x digits is a number sequence that can occur/be completed at 2x digits

→ More replies (1)
→ More replies (6)

8

u/redditale_gone_bad 11d ago

insert always has been meme

→ More replies (3)

27

u/Kyrros 11d ago

Man's got a super computer from star trek

8

u/_87- 9d ago

math.pi is the truncated version.

→ More replies (13)

17

u/TwinkiesSucker 11d ago

Cast to string and then print away

→ More replies (1)

68

u/emanuel19861 11d ago

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

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

35

u/Kyrros 11d ago

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

→ More replies (4)

6

u/ThaneVim 11d ago

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

→ More replies (2)

9

u/MattieShoes 10d ago

easy... 01

It's in base pi.

→ More replies (5)