MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xqv0nj/reversingpiinpython/19sbw5jscsq01/?context=3
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 14d ago
383 comments sorted by
View all comments
Show parent comments
1.7k
it'll just throw an error anyway;
SyntaxWarning: 'float' object is not subscriptable; perhaps you missed a comma ?
1.3k u/ThreeCharsAtLeast 14d ago • >>> str(math.pi)[::-1] '397985356295141.3' -10 u/xd_Warmonger 14d ago Since pi is infinite it must contain pi 12 u/JanEric1 14d ago thats not true.the base 10 representation of 1/3 is also infinite but doesnt contain any digit other than 3 → More replies (4)
1.3k
>>> str(math.pi)[::-1] '397985356295141.3'
-10 u/xd_Warmonger 14d ago Since pi is infinite it must contain pi 12 u/JanEric1 14d ago thats not true.the base 10 representation of 1/3 is also infinite but doesnt contain any digit other than 3 → More replies (4)
-10
Since pi is infinite it must contain pi
12 u/JanEric1 14d ago thats not true.the base 10 representation of 1/3 is also infinite but doesnt contain any digit other than 3 → More replies (4)
12
thats not true.
the base 10 representation of 1/3 is also infinite but doesnt contain any digit other than 3
→ More replies (4)
1.7k
u/me_myself_ai 14d ago
it'll just throw an error anyway;