The most complicated "hello world" program in a single line
MarcusWeinberger (598)

How it was made

First, I went through all the characters in "hello world" and used ord to find their numerical values. Using the argcount of a bunch of lambdas, I got a list of numbers 1 through 7. Using that list, I simply did some maths to get the numbers and printed them as ascii using chr.

I wrapped this in a couple lambdas using globals().update to set variables inline ( recently updated to python 3.8 so I could have used the := operator however it appears not to work in list comprehension) and bam.

(ignore the syntax errors, it still runs)

You are viewing a single comment. View All
AaravKyparlis (0)

takes a while to load

MarcusWeinberger (598)

@AaravKyparlis that's strange, for me, it's almost instant

AaravKyparlis (0)

@MarcusWeinberger I probably have a laggy computer