Skip to content

Instantly share code, notes, and snippets.

@hirokiky
Created February 23, 2020 14:36
Show Gist options
  • Save hirokiky/6e3844551b9f185bad640c83440eef5e to your computer and use it in GitHub Desktop.
Save hirokiky/6e3844551b9f185bad640c83440eef5e to your computer and use it in GitHub Desktop.
import random
data = [
"分け目ぴっしー",
"背筋ぴーん",
"ワイシャツパリ",
"ネクタイギュッ",
"ネクタイピンパチ",
"背広ファッ",
"靴ピッカピカ",
"社長室トントン",
"お辞儀ガックーン",
"顔ニコッ",
]
count = 1
while True:
print(count, "回目")
a = random.choice(data)
b = random.choice(data)
print(a)
print(b)
if a == b:
c = random.choice(data)
d = random.choice(data)
print(c)
print(d)
if c == d:
break
count += 1
print(count, "回目で成功しました")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment