Skip to content

Instantly share code, notes, and snippets.

@agung037
Created January 3, 2022 05:17
Show Gist options
  • Save agung037/6e57901d1b2c4b5b85a1c66c5ccb53dd to your computer and use it in GitHub Desktop.
Save agung037/6e57901d1b2c4b5b85a1c66c5ccb53dd to your computer and use it in GitHub Desktop.
Game Tebak Hewan
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