The most complicated "hello world" program in a single line
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 lambda
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 using chr
.
I wrapped this in a couple lambda
s 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)
oh no
This is too good. And it's in exactly 555 chars :D
And I noticed something else: 555 chars in the code, and 5 upvotes for first comment, 5 for the second one, and 5 for the third! This post is all about fives. @SixBeeps
@CodeABC123 Too bad my name exists
And the first time I looked at your reply, it was posted 5 seconds ago! @SixBeeps
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))
Oh boy, that's like reverse code golf. I love it
@enigma_dev code bowling
Generally, it's supposed to be "Hello world!", so it's missing a capital H, and an exclamation mark, "!"
“Code was built to be efficient and sleek. so let’s go in the exact opposite direction!”
(This really cool omg)
im a cool kid
no i am
No exclamation mark, 0/10
You should try Brainf.
im so gonna do this
@LiamDonohue let me know how it goes!
nice but overcomplicated.. Like my life!
takes a while to load
@AaravKyparlis that's strange, for me, it's almost instant
@MarcusWeinberger I probably have a laggy computer
at least this actually makes sense
@AdCharity You still remember don't you?
@Thecrowbar1234 that's the point
i really dont know what to say...
1810 bytes just to print "hello":
Try it online!
@sugarfi jeeeeez now that's crazy
@MarcusWeinberger yes