Created
January 3, 2022 05:17
-
-
Save agung037/6e57901d1b2c4b5b85a1c66c5ccb53dd to your computer and use it in GitHub Desktop.
Game Tebak Hewan
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
art = ''' | |
QUIZ (っ^▿^)۶🍸🌟🍺٩(˘◡˘ ) | |
███████████████████████████████████████████████████████████████████ | |
█─▄─▄─█▄─▄▄─█▄─▄─▀██▀▄─██▄─█─▄███─█─█▄─▄▄─█▄─█▀▀▀█─▄██▀▄─██▄─▀█▄─▄█ | |
███─████─▄█▀██─▄─▀██─▀─███─▄▀████─▄─██─▄█▀██─█─█─█─███─▀─███─█▄▀─██ | |
▀▀▄▄▄▀▀▄▄▄▄▄▀▄▄▄▄▀▀▄▄▀▄▄▀▄▄▀▄▄▀▀▀▄▀▄▀▄▄▄▄▄▀▀▄▄▄▀▄▄▄▀▀▄▄▀▄▄▀▄▄▄▀▀▄▄▀ | |
''' | |
my_dict = { | |
"Ant": "Semut", | |
"Bee": "Lebah", | |
"Mosquito": "Nyamuk", | |
"Butterfly": "Kupu-kupu", | |
"Spider": "Laba-laba", | |
"Fly": "Lalat", | |
"Hedgehog": "Landak", | |
"Snail": "Siput", | |
} | |
print(art) | |
while True: | |
t = input("apakah anda ingin bermain Y/N : ").upper() | |
counter = 0 | |
if t == "Y": | |
for k,v in my_dict.items(): | |
print(k) | |
a = input("Jawaban anda : ").lower() | |
if v.lower() == a.lower(): | |
print("\nBENAR") | |
counter += 1 | |
else: | |
print("\nSALAH") | |
print("_"*20) | |
print(f"SCORE : {counter} benar dan {len(my_dict) - counter} salah ") | |
else: | |
print("terimakasih") | |
break | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment