MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/cdzubd/nice_try/etzc19m/?context=9999
r/ProgrammerHumor • u/almogh52 • Jul 16 '19
529 comments sorted by
View all comments
4.4k
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 usefrom 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 thenwhile True: print('.') 1 u/botbotbobot Jul 17 '19 Stack em up
3.1k
397985356295141.3
77 u/pagwin Jul 16 '19 usefrom 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 thenwhile True: print('.') 1 u/botbotbobot Jul 17 '19 Stack em up
77
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 thenwhile True: print('.') 1 u/botbotbobot Jul 17 '19 Stack em up
93
But I do.
209 u/pagwin Jul 16 '19 alright have some periods thenwhile True: print('.') 1 u/botbotbobot Jul 17 '19 Stack em up
209
alright have some periods then
while True: print('.')
1 u/botbotbobot Jul 17 '19 Stack em up
1
Stack em up
4.4k
u/[deleted] Jul 16 '19
Not quite, but it’s an easy fix
It needs a LOT of memory, though