User:YSomebody

From Esolang
Jump to navigation Jump to search

Python-Befunge Polyglot

v = "Hello, world!"
[]
#>a"!dlrow ,olleH"v
#@,<,,,,,,,,,,,,,<<
print(v)

Deadfish 2 Interpreter

(Python 2)

program = raw_input("Enter a Deadfish 2 program: ")
acc = 0
string = ""
for i in program:
  if i == "i":
    acc += 1
  elif i == "d":
    acc -= 1
  elif i == "s":
    acc **= 2
  elif i == "o":
    print acc
  elif i == "O":
    print string
  elif i == "c":
    print chr(acc)
  elif i == "n":
    acc = 0
  elif i == "r":
    string = raw_input("")
  elif i == "h":
    break