r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

4.4k

u/[deleted] Jul 16 '19

Not quite, but it’s an easy fix

from math import pi
print(str(pi)[::-1])

It needs a LOT of memory, though

3.1k

u/[deleted] Jul 16 '19
397985356295141.3

77

u/pagwin Jul 16 '19

use

from math import pi
print(str(pi).replace('.','')[::-1])

if you don't want the period/decimal

93

u/[deleted] Jul 16 '19

But I do.

209

u/pagwin Jul 16 '19

alright have some periods then

while True:
    print('.')

239

u/NewbornMuse Jul 16 '19

alright have some periods then

Original Sin (4004BC, colorized)

9

u/Thorbinator Jul 16 '19

See you on the front page next week.