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.

Dog Program

From Esolang
Jump to navigation Jump to search

This is a joke program thing

As of the Cat Program just repeats what you input,

the dog tells you something and you have to repeat it excactly or else it prints Bark Bark!

if you don't understand without code then here's a (bad) python version:

import random

letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
output = []
a = 0

def dog():
    a = random.randint(1, 10))
    for i in range(a):
        output.extend[letters[random.randint(0, len(letters) - 1)]

    return output

b = dog()
print(b)
c = input()
if c != b:
    print("Bark Bark!")

this was my first python script i wrote myself btw