Skip to content

Instantly share code, notes, and snippets.

@digiguru
Created May 14, 2024 11:19
Show Gist options
  • Save digiguru/60ed79ae3c8759b106f4fc37315deba0 to your computer and use it in GitHub Desktop.
Save digiguru/60ed79ae3c8759b106f4fc37315deba0 to your computer and use it in GitHub Desktop.
Example app
animals = {
"cow": r"""
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
""",
"donkey": r"""
\
\
/\_/\
( / & \ )
\ ^ /
/||_||\
""",
"owl": r"""
\_/
( o o )
\---/
// \\
"""
}
chosen_animal = input("Choose an animal (cow, donkey, owl): ").lower()
if chosen_animal in animals:
print(animals[chosen_animal])
else:
print("Sorry, we don't have an ASCII art for that animal.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment