Last active
March 10, 2023 00:43
-
-
Save juliusgeo/661cb84d04d906ca9f08b8769b85da5e to your computer and use it in GitHub Desktop.
IOCCC 1988 Underscore Pi Python Recreation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(''.join(b:=open(__file__).readlines()[1:]).count("#")/len(b)/4) | |
####### | |
################# | |
#######--------######## | |
######-------------####### | |
######-----------------###### | |
#####------------------###### | |
######-------------------###### | |
#####--------------------###### | |
#####---------!\---------###### | |
######--------!$#\-------###### | |
######-------!#$#$#\---###### | |
######-------!#$#$##$#\##### | |
#######-----!$#$#$#$#$#\### | |
##########!$#$#$#$#$##\ | |
######!$#$#$### | |
##!#### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Directly inspired by:
https://codeexplainer.wordpress.com/2017/08/27/underscore-pi/
https://www.ioccc.org/1988/westley.c
Output: