Self 2
Jump to navigation
Jump to search
Self 2 is a programming language where if you type two "Self"s, it prints two "Self"s
Quine
Self Self
Interpreter
program = input()
selfcounter = 0
for item in program.split(" "):
if item == "self":
selfcounter+=1
else:
raise NameError("you can only type self, not "+item)
if selfcounter == 2:
print("self self")
selfcounter = 0