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

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
Coder100 (12749)

such verbose

while True and "verbose is verbose" and "this is as verbose as I can get":
  votes = int(str(votes + 0 + 1))
  magic = int(str(magic + 1 + 0))