Created
May 14, 2024 11:19
-
-
Save digiguru/60ed79ae3c8759b106f4fc37315deba0 to your computer and use it in GitHub Desktop.
Example app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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