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

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 (repl.it 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
ChezCoder (204)

i really dont know what to say...