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.
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 oflambda
s, 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 usingchr
.I wrapped this in a couple
lambda
s usingglobals().update
to set variables inline (repl.it recently updated topython 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)
@Thecrowbar1234 that's the point