Jump to navigation Jump to search
|-||prints "Hello, World!"|
Everything that is not a dash prints "I will not do that!".
I will not do that!
Here is a REPL-style implementation written in Python 3.
def dash(code): for c in code: if c == "-": print("Hello, World!") else: print("I will not do that!") while len(code := input("> ")) > 0: dash(code)