We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

input hello world or else:

From Esolang
(Redirected from User:Ractangle/iurgdytrh)
Jump to navigation Jump to search

input hello world or else: is a joke esolang created by User:Ractangle based on his IT computer desktop file shown bellow:

print("Hello world")
answer=input("input hello world or else:")
if answer == "hello world" :
    print("thanks for hello world")
    input("press enter to end this sesion")
else:
    while True :
        print("enter")

Syntax

if the command is this:

Hello world

it prints Hello world

else print

grrrrrrrrr

Implementations

Python

print("Hello world")if input()=="Hello world"else print("grrrrrrrrr")

Shorter

print({(x:="Hello world"):x}.get(input(),"grrrrrrrrr"))

Lua

print(io.read():match"^Hello world$"or"grrrrrrrrr")

>|<>|<

>|<, ((?<>/-/(?<?=Hello world<>(Hello world)(grrrrrrrrr))

Note that this if it contains "Hello world" outputs "Hello world", even if it has other things, like "jskljdhwefjkashdjf hakjsd hfashdkfasdfjash kdHello worldkdalsjdl aksdo wakjs ndkawhksdbn a.ls dsk daj" else, grrrrrrrr

See also